13#include <zypp-core/Pathname.h>
14#include <zypp-core/base/String.h>
15#include <zypp-core/base/Gettext.h>
26 bool valid()
const override;
27 bool matches(
const MediaDataVerifierRef &rhs)
const override;
29 const std::string &
mediaIdent()
const override;
31 std::ostream &
toStream(std::ostream &
str)
const override;
35 MediaDataVerifierRef
clone ()
const override;
60 auto conv = std::dynamic_pointer_cast<SuseMediaDataVerifier>(rhs);
76 std::ifstream inp( path_r.
c_str() );
78 ERR <<
"Can't setup a SUSEMediaVerifier from file: " << path_r.
asString() << std::endl;
84 getline( inp, buffer );
109 zypp::str::Format fmt {
_(
"Expected medium %1%/%2% identified by file '%3%' with content:") };
124 if ( verifierType ==
"SuseMediaV1" ) {
130 std::ostream &
operator<<(std::ostream &
str,
const MediaDataVerifierRef &obj)
133 return obj->toStream(
str);
134 return str <<
"[MediaVerifier: null]";
const char * c_str() const
String representation.
const std::string & asString() const
String representation.
String related utilities and Regular expression matching.
std::string numstring(char n, int w=0)
TInt strtonum(const C_Str &str)
Parsing numbers from string.
std::ostream & operator<<(std::ostream &str, const MediaDataVerifierRef &obj)
ZYPP_FWD_DECL_TYPE_WITH_REFS(SuseMediaDataVerifier)
Convenient building of std::string via std::ostringstream Basically a std::ostringstream autoconverti...