libzypp 17.37.17
|
Build string to identify/retrieve a specific Solvable. More...
#include <zypp/InstanceId.h>
Public Member Functions | |
InstanceId () | |
Default ctor empty empty namespace. | |
InstanceId (std::string namespace_r) | |
Ctor taking namespace. | |
std::string | getIdFor (sat::Solvable slv_r) const |
Solvable to InstanceId string. | |
std::string | getIdFor (const PoolItem &pi_r) const |
PoolItem to InstanceId string. | |
sat::Solvable | findSolvable (const std::string &str_r) const |
InstanceId string to Solvable. | |
PoolItem | findPoolItem (const std::string &str_r) const |
InstanceId string to PoolItem. | |
std::string | operator() (sat::Solvable slv_r) const |
Solvable to InstanceId string. | |
std::string | operator() (const PoolItem &pi_r) const |
PoolItem to InstanceId string. | |
PoolItem | operator() (const std::string &str_r) const |
InstanceId string to PoolItem. | |
bool | isSystemId (const std::string &str_r) const |
Quick test whether the InstanceId string would refer to a system (installed) Solvable. | |
const std::string & | getNamespace () const |
The namespace in use. | |
void | setNamespace (const std::string &namespace_r) |
Set a new namespace. | |
void | unsetNamespace () |
Set no (empty) namespace. |
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 47 of file InstanceId.h.
|
inline |
Default ctor empty empty namespace.
Definition at line 51 of file InstanceId.h.
|
inline |
Ctor taking namespace.
Definition at line 55 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 63 of file InstanceId.h.
|
inline |
InstanceId string to Solvable.
Definition at line 67 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 74 of file InstanceId.h.
|
inline |
PoolItem to InstanceId string.
Definition at line 78 of file InstanceId.h.
|
inline |
InstanceId string to PoolItem.
Definition at line 82 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 91 of file InstanceId.h.
|
inline |
Set a new namespace.
Definition at line 95 of file InstanceId.h.
|
inline |
Set no (empty) namespace.
Definition at line 99 of file InstanceId.h.
|
private |
Definition at line 103 of file InstanceId.h.