82 explicit Edition(
const std::string & str_r ) :
_str( str_r ) {}
86 Edition(
const std::string & version_r,
87 const std::string & release_r,
90 Edition(
const char * version_r,
91 const char * release_r,
95 Edition(
const std::string & version_r,
96 const std::string & release_r,
97 const std::string & epoch_r );
99 Edition(
const char * version_r,
100 const char * release_r,
101 const char * epoch_r );
143 static int match(
const std::string & lhs,
const std::string & rhs ) {
return _doMatch( lhs.c_str(), rhs.c_str() ); }
144 static int match(
const std::string & lhs,
const char * rhs ) {
return _doMatch( lhs.c_str(), rhs ); }
148 static int match(
const char * lhs,
const std::string & rhs ) {
return _doMatch( lhs, rhs.c_str() ); }
149 static int match(
const char * lhs,
const char * rhs ) {
return _doMatch( lhs, rhs ); }
172 static int _doCompare(
const char * lhs,
const char * rhs );
173 static int _doMatch(
const char * lhs,
const char * rhs );
183 {
return str <<
"<edition"
184 <<
" epoch=\"" << obj.
epoch() <<
"\""
185 <<
" version=\"" << obj.
version() <<
"\""
186 <<
" release=\"" << obj.
release() <<
"\""
Edition represents [epoch:]version[-release]
static int match(const IdString &lhs, const IdString &rhs)
static int match(const Edition &lhs, const Edition &rhs)
int match(const std::string &rhs) const
unsigned epoch_t
Type of an epoch.
std::string version() const
Version.
static int match(const std::string &lhs, const Edition &rhs)
static int match(const char *lhs, const Edition &rhs)
std::ostream & dumpAsXmlOn(std::ostream &str, const Edition &obj)
XML output.
static const epoch_t noepoch
Value representing noepoch.
int match(const char *rhs) const
Edition()
Default ctor: noedition.
zypp::Compare< Edition > Compare
compare functor.
int match(const IdString &rhs) const
static int match(const Edition &lhs, const char *rhs)
Edition(const char *cstr_r)
static int match(const std::string &lhs, const std::string &rhs)
int match(const Edition &rhs) const
static int match(const std::string &lhs, const char *rhs)
Range< Edition, Match > MatchRange
Edition Range based on Match.
std::string release() const
Release.
Edition(const IdString &idstr_r)
Range< Edition > CompareRange
Edition Range based on Compare.
static int match(const IdString &lhs, const char *rhs)
static int match(const Edition &lhs, const std::string &rhs)
static int match(const char *lhs, const std::string &rhs)
static int match(const char *lhs, const char *rhs)
Edition(IdString::IdType id_r)
Ctor taking edition as string.
static int _doMatch(const char *lhs, const char *rhs)
epoch_t epoch() const
Epoch.
static int match(const IdString &lhs, const std::string &rhs)
static int match(const Edition &lhs, const IdString &rhs)
static int _doCompare(const char *lhs, const char *rhs)
static int match(const char *lhs, const IdString &rhs)
Edition(const std::string &str_r)
static const Edition noedition
Value representing noedition ("") This is in fact a valid Edition.
static int match(const std::string &lhs, const IdString &rhs)
static int match(const IdString &lhs, const Edition &rhs)
Base class for creating IdString based types.
const char * c_str() const
Access to the sat-pools string space.
const char * c_str() const
Conversion to const char *
sat::detail::IdType IdType
bool compareEQ(const IdString &rhs) const
Fast compare equal.
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
General compare functor returning -1, 0, 1.
int operator()(const Edition &lhs, const Edition &rhs) const