#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 (const UnarchiveStep &stepper) |
| |
Definition at line 21 of file archive.h.
◆ UnarchiveStep
◆ Archive()
| impeller::Archive::Archive |
( |
const std::string & |
path | ) |
|
|
explicit |
Definition at line 14 of file archive.cc.
15 : database_(std::make_unique<ArchiveDatabase>(path)) {}
◆ ~Archive()
| impeller::Archive::~Archive |
( |
| ) |
|
Definition at line 17 of file archive.cc.
18 FML_DCHECK(transaction_count_ == 0)
19 <<
"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>>
Definition at line 47 of file archive.h.
48 const ArchiveDef& def = T::kArchiveDefinition;
49 return UnarchiveInstances(def, stepper);
◆ Read() [2/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 |
◆ 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: