libzypp
13.10.6
|
Build string to identify/retrieve a specific Solvable. More...
#include <InstanceId.h>
Public Member Functions | |
InstanceId () | |
Default ctor empty empty namespace. More... | |
InstanceId (const std::string &namespace_r) | |
Ctor taking namespace. More... | |
std::string | getIdFor (sat::Solvable slv_r) const |
Solvable to InstanceId string. More... | |
std::string | getIdFor (const PoolItem &pi_r) const |
PoolItem to InstanceId string. More... | |
sat::Solvable | findSolvable (const std::string str_r) const |
InstanceId string to Solvable. More... | |
PoolItem | findPoolItem (const std::string str_r) const |
InstanceId string to PoolItem. More... | |
std::string | operator() (sat::Solvable slv_r) const |
Solvable to InstanceId string. More... | |
std::string | operator() (const PoolItem &pi_r) const |
PoolItem to InstanceId string. More... | |
PoolItem | operator() (const std::string str_r) const |
InstanceId string to PoolItem. More... | |
bool | isSystemId (const std::string str_r) const |
Quick test whether the InstanceId string would refer to a system (installed) Solvable. More... | |
const std::string & | getNamespace () const |
The namespace in use. More... | |
void | setNamespace (const std::string &namespace_r) |
Set a new namespace. More... | |
void | unsetNamespace () |
Set no (empty) namespace. More... | |
Private Attributes | |
std::string | _namespace |
Build string to identify/retrieve a specific Solvable.
"[<namespace>:]<name>-<version>-<release>.<arch>@<repoalias>"
Any namespace that prepends the InstanceIds must be passed to the ctor. Conversion to/from instanceId can be done via function call operator()
.
Definition at line 46 of file InstanceId.h.
|
inline |
Default ctor empty empty namespace.
Definition at line 50 of file InstanceId.h.
|
inline |
Ctor taking namespace.
Definition at line 54 of file InstanceId.h.
std::string zypp::InstanceId::getIdFor | ( | sat::Solvable | slv_r | ) | const |
Solvable to InstanceId string.
Definition at line 25 of file InstanceId.cc.
|
inline |
PoolItem to InstanceId string.
Definition at line 62 of file InstanceId.h.
|
inline |
InstanceId string to Solvable.
Definition at line 66 of file InstanceId.h.
PoolItem zypp::InstanceId::findPoolItem | ( | const std::string | str_r | ) | const |
InstanceId string to PoolItem.
Definition at line 49 of file InstanceId.cc.
|
inline |
Solvable to InstanceId string.
Definition at line 73 of file InstanceId.h.
|
inline |
PoolItem to InstanceId string.
Definition at line 77 of file InstanceId.h.
|
inline |
InstanceId string to PoolItem.
Definition at line 81 of file InstanceId.h.
bool zypp::InstanceId::isSystemId | ( | const std::string | str_r | ) | const |
Quick test whether the InstanceId string would refer to a system (installed) Solvable.
Definition at line 109 of file InstanceId.cc.
|
inline |
The namespace in use.
Definition at line 90 of file InstanceId.h.
|
inline |
Set a new namespace.
Definition at line 94 of file InstanceId.h.
|
inline |
Set no (empty) namespace.
Definition at line 98 of file InstanceId.h.
|
private |
Definition at line 102 of file InstanceId.h.