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;
76 std::ifstream inp( path_r.
c_str() );
78 ERR <<
"Can't setup a SUSEMediaVerifier from file: " << path_r.
asString() << std::endl;
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]";
ZYPP_FWD_DECL_TYPE_WITH_REFS(SuseMediaDataVerifier)
const char * c_str() const
String representation.
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const MediaDataVerifierRef &obj)
std::string getline(std::istream &str)
Read one line from stream.
Convenient building of std::string via std::ostringstream Basically a std::ostringstream autoconverti...
const std::string & asString() const
String representation.
TInt strtonum(const C_Str &str)
Parsing numbers from string.
std::string numstring(char n, int w=0)