24#ifndef STORAGE_SUBDEVICE_H
25#define STORAGE_SUBDEVICE_H
28#include "storage/Holders/Holder.h"
40 class Subdevice :
public Holder
55 static Subdevice* load(
Devicegraph* devicegraph,
const xmlNode* node);
57 virtual Subdevice* clone()
const override;
64 const Impl& get_impl()
const;
66 Subdevice(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
Generic holder from one device to a subdevice, e.g.
Definition Subdevice.h:41
static Subdevice * create(Devicegraph *devicegraph, const Device *source, const Device *target)
Create a holder of type Subdevice.
The storage namespace.
Definition Actiongraph.h:40
bool is_subdevice(const Holder *holder)
Checks whether holder points to a Subdevice.
Subdevice * to_subdevice(Holder *holder)
Converts pointer to Holder to pointer to Subdevice.