23 #ifndef STORAGE_MD_SUBDEVICE_H
24 #define STORAGE_MD_SUBDEVICE_H
29 #include "storage/Holders/Subdevice.h"
63 void set_member(
const std::string& member);
70 const Impl& get_impl()
const;
Holder from a MdContainer to a MdMember.
Definition: MdSubdevice.h:41
The storage namespace.
Definition: Actiongraph.h:39
Generic holder from one device to a subdevice, e.g.
Definition: Subdevice.h:41
static MdSubdevice * create(Devicegraph *devicegraph, const Device *source, const Device *target)
Create a holder of type MdSubdevice.
The main container of the libstorage-ng.
Definition: Devicegraph.h:170
bool is_md_subdevice(const Holder *holder)
Checks whether holder points to an MdSubdevice.
const std::string & get_member() const
The "member" string of the MdMember in the MdContainer.
An abstract base class for storage devices.
Definition: Device.h:82
An abstract base class for storage holders.
Definition: Holder.h:57
MdSubdevice * to_md_subdevice(Holder *holder)
Converts pointer to Holder to pointer to MdSubdevice.