24 #ifndef STORAGE_SUBDEVICE_H 25 #define STORAGE_SUBDEVICE_H 28 #include "storage/Holders/Holder.h" 57 virtual Subdevice* clone()
const override;
64 const Impl& get_impl()
const;
Subdevice * to_subdevice(Holder *holder)
Converts pointer to Holder to pointer to Subdevice.
static Subdevice * create(Devicegraph *devicegraph, const Device *source, const Device *target)
Create a holder of type Subdevice.
The main container of the libstorage-ng.
Definition: Devicegraph.h:169
bool is_subdevice(const Holder *holder)
Checks whether holder points to a Subdevice.
An abstract base class for storage devices.
Definition: Device.h:81
Generic holder from one device to a subdevice, e.g.
Definition: Subdevice.h:40
An abstract base class for storage holders.
Definition: Holder.h:56
The storage namespace.
Definition: Actiongraph.h:38