libstorage-ng
 All Classes Namespaces Functions Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
storage::Storage Class Reference

The main entry point to libstorage. More...

#include <Storage.h>

Inheritance diagram for storage::Storage:
Inheritance graph
[legend]
Collaboration diagram for storage::Storage:
Collaboration graph
[legend]

Public Member Functions

 Storage (const Environment &environment)
 
const Environmentget_environment () const
 
const Arch & get_arch () const
 
Devicegraphcreate_devicegraph (const std::string &name)
 
Devicegraphcopy_devicegraph (const std::string &source_name, const std::string &dest_name)
 
void remove_devicegraph (const std::string &name)
 
void restore_devicegraph (const std::string &name)
 
bool equal_devicegraph (const std::string &lhs, const std::string &rhs) const
 
bool exist_devicegraph (const std::string &name) const
 
std::vector< std::string > get_devicegraph_names () const
 
Devicegraphget_devicegraph (const std::string &name)
 Return a devicegraph by name.
 
const Devicegraphget_devicegraph (const std::string &name) const
 Return a devicegraph by name.
 
Devicegraphget_staging ()
 Return the staging devicegraph.
 
const Devicegraphget_staging () const
 Return the staging devicegraph.
 
const Devicegraphget_probed () const
 Return the probed devicegraph.
 
void check () const
 
const std::string & get_rootprefix () const
 
void set_rootprefix (const std::string &rootprefix)
 
std::string prepend_rootprefix (const std::string &mountpoint) const
 Prepends the root prefix to a mountpoint if necessary.
 
const Actiongraphcalculate_actiongraph ()
 The actiongraph is only valid until either the probed or staging devicegraph is modified.
 
void commit (const CommitCallbacks *commit_callbacks=nullptr)
 The actiongraph must be valid.
 
Impl & get_impl ()
 
const Impl & get_impl () const
 

Detailed Description

The main entry point to libstorage.


The documentation for this class was generated from the following file: