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