28#include "storage/Filesystems/BlkFilesystem.h"
39 class Swap :
public BlkFilesystem
51 static Swap* load(
Devicegraph* devicegraph,
const xmlNode* node);
68 const Impl& get_impl()
const;
70 virtual Swap* clone()
const override;
An abstract base class for storage devices.
Definition Device.h:82
The main container of the libstorage-ng.
Definition Devicegraph.h:170
Class to represent a swap filesystem in the devicegraph.
Definition Swap.h:40
static std::vector< Swap * > get_all(Devicegraph *devicegraph)
Get all Swaps.
static Swap * create(Devicegraph *devicegraph)
Create a device of type Swap.
static std::vector< const Swap * > get_all(const Devicegraph *devicegraph)
Get all Swaps.
The storage namespace.
Definition Actiongraph.h:40
bool is_swap(const Device *device)
Checks whether device points to an Swap.
Swap * to_swap(Device *device)
Converts pointer to Device to pointer to Swap.