libzypp 17.31.23
|
Hardware abstaction layer singleton. More...
#include <target/modalias/Modalias.h>
Classes | |
struct | Impl |
Modalias implementation. More... | |
Public Types | |
typedef std::vector< std::string > | ModaliasList |
Public Member Functions | |
~Modalias () | |
Dtor. | |
bool | query (IdString cap_r) const |
Checks if a device on the system matches a modalias pattern. | |
bool | query (const char *cap_r) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
bool | query (const std::string &cap_r) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
const ModaliasList & | modaliasList () const |
List of modaliases found on system. | |
void | modaliasList (ModaliasList newlist_r) |
Manually set list of modaliases to use. | |
Static Public Member Functions | |
static Modalias & | instance () |
Singleton access. | |
Private Member Functions | |
Modalias () | |
Singleton ctor. | |
Private Attributes | |
RW_pointer< Impl > | _pimpl |
Pointer to implementation. | |
Friends | |
std::ostream & | operator<< (std::ostream &str, const Modalias &obj) |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const Modalias &obj) |
Stream output. | |
Hardware abstaction layer singleton.
Definition at line 35 of file Modalias.h.
typedef std::vector<std::string> zypp::target::Modalias::ModaliasList |
Definition at line 44 of file Modalias.h.
zypp::target::Modalias::~Modalias | ( | ) |
Dtor.
Definition at line 216 of file Modalias.cc.
|
private |
Singleton ctor.
Definition at line 212 of file Modalias.cc.
|
static |
Singleton access.
Definition at line 219 of file Modalias.cc.
Checks if a device on the system matches a modalias pattern.
Returns false
if no matching device is found, and the modalias of the first matching device otherwise. (More than one device may match a given pattern.)
On a system that has the following device,
the following query will return true:
Definition at line 69 of file Modalias.h.
bool zypp::target::Modalias::query | ( | const char * | cap_r | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 225 of file Modalias.cc.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 74 of file Modalias.h.
const Modalias::ModaliasList & zypp::target::Modalias::modaliasList | ( | ) | const |
List of modaliases found on system.
Definition at line 228 of file Modalias.cc.
void zypp::target::Modalias::modaliasList | ( | ModaliasList | newlist_r | ) |
Manually set list of modaliases to use.
Definition at line 231 of file Modalias.cc.
|
friend |
Definition at line 234 of file Modalias.cc.
|
related |
Stream output.
Definition at line 234 of file Modalias.cc.
|
private |
Pointer to implementation.
Definition at line 88 of file Modalias.h.