23#ifndef STORAGE_SNAPSHOT_H
24#define STORAGE_SNAPSHOT_H
27#include "storage/Holders/Holder.h"
41 class Snapshot :
public Holder
55 static Snapshot* load(
Devicegraph* devicegraph,
const xmlNode* node);
57 virtual Snapshot* clone()
const override;
64 const Impl& get_impl()
const;
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
Relationship between origin and snapshot.
Definition Snapshot.h:42
static Snapshot * create(Devicegraph *devicegraph, const Device *source, const Device *target)
Create a holder of type Snapshot.
The storage namespace.
Definition Actiongraph.h:40
bool is_snapshot(const Holder *holder)
Checks whether holder points to a Snapshot.
Snapshot * to_snapshot(Holder *holder)
Converts pointer to Holder to pointer to Snapshot.