libzypp
10.5.0
|
Helper providing more detailed information about a Capability. More...
#include <Capability.h>
Public Types | |
enum | Kind { NOCAP = 0x00, NAMED = 0x01, VERSIONED = 0x02, EXPRESSION = 0x04 } |
enum | CapRel { REL_NONE = 0, CAP_AND = 16, CAP_OR = 17, CAP_WITH = 18, CAP_NAMESPACE = 19, CAP_ARCH = 20 } |
Enum values corresponding with libsolv defines. More... | |
Public Member Functions | |
CapDetail () | |
CapDetail (const Capability &cap_r) | |
CapDetail (sat::detail::IdType id_r) | |
Kind | kind () const |
bool | isNull () const |
bool | isNamed () const |
bool | isVersioned () const |
bool | isSimple () const |
bool | isExpression () const |
Is simple: <tt>name[.arch] [op edition]</tt> | |
bool | hasArch () const |
IdString | arch () const |
IdString | name () const |
Rel | op () const |
Edition | ed () const |
Is expression <tt>cap op cap</tt> | |
Capability | lhs () const |
CapRel | capRel () const |
Capability | rhs () const |
Private Member Functions | |
void | _init () |
Private Attributes | |
Kind | _kind |
sat::detail::IdType | _lhs |
sat::detail::IdType | _rhs |
unsigned | _flag |
sat::detail::IdType | _archIfSimple |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const CapDetail &obj) |
std::ostream & | operator<< (std::ostream &str, CapDetail::Kind obj) |
std::ostream & | operator<< (std::ostream &str, CapDetail::CapRel obj) |
Helper providing more detailed information about a Capability.
Capabilities are classified to be either SIMPLE:
or formed by some EXPRESSION:
Definition at line 297 of file Capability.h.
Definition at line 300 of file Capability.h.
Enum values corresponding with libsolv defines.
Definition at line 311 of file Capability.h.
zypp::CapDetail::CapDetail | ( | ) | [inline] |
Definition at line 322 of file Capability.h.
zypp::CapDetail::CapDetail | ( | const Capability & | cap_r | ) | [inline, explicit] |
Definition at line 325 of file Capability.h.
zypp::CapDetail::CapDetail | ( | sat::detail::IdType | id_r | ) | [inline, explicit] |
Definition at line 328 of file Capability.h.
Kind zypp::CapDetail::kind | ( | ) | const [inline] |
Definition at line 333 of file Capability.h.
bool zypp::CapDetail::isNull | ( | ) | const [inline] |
Definition at line 334 of file Capability.h.
bool zypp::CapDetail::isNamed | ( | ) | const [inline] |
Definition at line 335 of file Capability.h.
bool zypp::CapDetail::isVersioned | ( | ) | const [inline] |
Definition at line 336 of file Capability.h.
bool zypp::CapDetail::isSimple | ( | ) | const [inline] |
Definition at line 337 of file Capability.h.
bool zypp::CapDetail::isExpression | ( | ) | const [inline] |
Definition at line 338 of file Capability.h.
bool zypp::CapDetail::hasArch | ( | ) | const [inline] |
Definition at line 342 of file Capability.h.
IdString zypp::CapDetail::arch | ( | ) | const [inline] |
Definition at line 343 of file Capability.h.
IdString zypp::CapDetail::name | ( | ) | const [inline] |
Definition at line 344 of file Capability.h.
Rel zypp::CapDetail::op | ( | ) | const [inline] |
Definition at line 345 of file Capability.h.
Edition zypp::CapDetail::ed | ( | ) | const [inline] |
Definition at line 346 of file Capability.h.
Capability zypp::CapDetail::lhs | ( | ) | const [inline] |
Definition at line 351 of file Capability.h.
CapRel zypp::CapDetail::capRel | ( | ) | const [inline] |
Definition at line 352 of file Capability.h.
Capability zypp::CapDetail::rhs | ( | ) | const [inline] |
Definition at line 353 of file Capability.h.
void zypp::CapDetail::_init | ( | ) | [private] |
Definition at line 446 of file Capability.cc.
std::ostream & operator<< | ( | std::ostream & | str, |
const CapDetail & | obj | ||
) | [related] |
Stream output
Definition at line 503 of file Capability.cc.
std::ostream & operator<< | ( | std::ostream & | str, |
CapDetail::Kind | obj | ||
) | [related] |
Stream output
Definition at line 541 of file Capability.cc.
std::ostream & operator<< | ( | std::ostream & | str, |
CapDetail::CapRel | obj | ||
) | [related] |
Stream output
Definition at line 553 of file Capability.cc.
Kind zypp::CapDetail::_kind [private] |
Definition at line 359 of file Capability.h.
sat::detail::IdType zypp::CapDetail::_lhs [private] |
Definition at line 360 of file Capability.h.
sat::detail::IdType zypp::CapDetail::_rhs [private] |
Definition at line 361 of file Capability.h.
unsigned zypp::CapDetail::_flag [private] |
Definition at line 362 of file Capability.h.
Definition at line 363 of file Capability.h.