libstorage-ng
|
Holder from a MdContainer to a MdMember. More...
#include <MdSubdevice.h>
Public Member Functions | |
virtual MdSubdevice * | clone () const override |
const std::string & | get_member () const |
The "member" string of the MdMember in the MdContainer. | |
void | set_member (const std::string &member) |
Impl & | get_impl () |
const Impl & | get_impl () const |
![]() | |
Impl & | get_impl () |
const Impl & | get_impl () const |
![]() | |
Device * | get_source () |
Get the source device of the holder. | |
const Device * | get_source () const |
Get the source device of the holder. More... | |
void | set_source (const Device *source) |
Set the source device of the holder. More... | |
void | set_target (const Device *target) |
Set the target device of the holder. More... | |
sid_t | get_source_sid () const |
Return the storage id (sid) of the source of the holder. More... | |
Device * | get_target () |
Get the target device of the holder. | |
const Device * | get_target () const |
Get the target device of the holder. More... | |
sid_t | get_target_sid () const |
Return the storage id (sid) of the target of the holder. More... | |
bool | operator== (const Holder &rhs) const |
bool | operator!= (const Holder &rhs) const |
Holder * | copy_to_devicegraph (Devicegraph *devicegraph) const |
Copies the holder to the devicegraph. More... | |
bool | exists_in_devicegraph (const Devicegraph *devicegraph) const |
Checks if the holder exists in the devicegraph. | |
bool | exists_in_probed () const |
Checks if the holder exists in the probed devicegraph. | |
bool | exists_in_staging () const |
Checks if the holder exists in the staging devicegraph. | |
bool | exists_in_system () const |
Checks if the holder exists in the system devicegraph. | |
const std::map< std::string, std::string > & | get_userdata () const |
Return the userdata of the holder. | |
void | set_userdata (const std::map< std::string, std::string > &userdata) |
Set the userdata of the holder. | |
Devicegraph * | get_devicegraph () |
Return the devicegraph the holder belongs to. | |
const Devicegraph * | get_devicegraph () const |
Return the devicegraph the holder belongs to. More... | |
Impl & | get_impl () |
const Impl & | get_impl () const |
void | save (xmlNode *node) const ST_DEPRECATED |
Static Public Member Functions | |
static MdSubdevice * | create (Devicegraph *devicegraph, const Device *source, const Device *target) |
Create a holder of type MdSubdevice. More... | |
static MdSubdevice * | load (Devicegraph *devicegraph, const xmlNode *node) |
![]() | |
static Subdevice * | create (Devicegraph *devicegraph, const Device *source, const Device *target) |
Create a holder of type Subdevice. More... | |
static Subdevice * | load (Devicegraph *devicegraph, const xmlNode *node) |
Protected Member Functions | |
MdSubdevice (Impl *impl) | |
![]() | |
Subdevice (Impl *impl) | |
![]() | |
Holder (Impl *impl) | |
void | create (Devicegraph *devicegraph, const Device *source, const Device *target) |
Create a holder between source and target in the devicegraph. More... | |
void | load (Devicegraph *devicegraph, const xmlNode *node) |
Holder from a MdContainer to a MdMember.
|
static |
Create a holder of type MdSubdevice.
Usually this function is not called directly. It is called during probing.
HolderAlreadyExists |