#include <archive.h>
|
| | Archive (const std::string &path) |
| |
| | ~Archive () |
| |
| bool | IsValid () const |
| |
| template<class T , class = std::enable_if_t<std::is_base_of<Archivable, T>::value>> |
| bool | Write (const T &archivable) |
| |
| template<class T , class = std::enable_if_t<std::is_base_of<Archivable, T>::value>> |
| bool | Read (PrimaryKey name, T &archivable) |
| |
| template<class T , class = std::enable_if_t<std::is_base_of<Archivable, T>::value>> |
| size_t | Read (UnarchiveStep stepper) |
| |
Definition at line 22 of file archive.h.
◆ UnarchiveStep
◆ Archive()
| impeller::Archive::Archive |
( |
const std::string & |
path | ) |
|
Definition at line 17 of file archive.cc.
18 : database_(std::make_unique<ArchiveDatabase>(path)) {}
◆ ~Archive()
| impeller::Archive::~Archive |
( |
| ) |
|
Definition at line 20 of file archive.cc.
21 FML_DCHECK(transaction_count_ == 0)
22 <<
"There must be no pending transactions";
◆ IsValid()
| bool impeller::Archive::IsValid |
( |
| ) |
const |
◆ Read() [1/2]
template<class T , class = std::enable_if_t<std::is_base_of<Archivable, T>::value>>
| bool impeller::Archive::Read |
( |
PrimaryKey |
name, |
|
|
T & |
archivable |
|
) |
| |
|
inline |
◆ Read() [2/2]
template<class T , class = std::enable_if_t<std::is_base_of<Archivable, T>::value>>
Definition at line 48 of file archive.h.
49 const ArchiveDef& def = T::kArchiveDefinition;
50 return UnarchiveInstances(def, stepper);
◆ Write()
template<class T , class = std::enable_if_t<std::is_base_of<Archivable, T>::value>>
| bool impeller::Archive::Write |
( |
const T & |
archivable | ) |
|
|
inline |
◆ ArchiveLocation
The documentation for this class was generated from the following files: