the archive that reads the members of a structure [see restore()]
More...
#include <ADS/external/Persistence.h>
|
| | PersistReader (std::istream &s, std::string w) |
| | the reader of the stream \( s \), named \( w \) in the errors
|
| | PersistReader (std::span< const std::byte > b, std::string w, MappedFile m=MappedFile()) |
| | the reader of the bytes \( b \), named \( w \) in the errors, which make its arrays views over them if they lie in the mapping \( m \)
|
| template<class... X> |
| void | operator() (X &... x) |
| | the members \( x \) read in order
|
| void | require (bool c, const char *what) const |
| | the file rejected, as corrupted in what, unless \( c \)
|
| std::uint32_t | version (void) const |
| | the version in the file of the structure being read, between its persistOldestVersion and its persistVersion
|
|
| static constexpr bool | loading = true |
| | a reader, never a writer
|
the archive that reads the members of a structure [see restore()]
◆ PersistReader() [1/2]
| ADS::PersistReader::PersistReader |
( |
std::istream & | s, |
|
|
std::string | w ) |
the reader of the stream \( s \), named \( w \) in the errors
◆ PersistReader() [2/2]
| ADS::PersistReader::PersistReader |
( |
std::span< const std::byte > | b, |
|
|
std::string | w, |
|
|
MappedFile | m = MappedFile() ) |
the reader of the bytes \( b \), named \( w \) in the errors, which make its arrays views over them if they lie in the mapping \( m \)
◆ operator()()
template<class... X>
| void ADS::PersistReader::operator() |
( |
X &... | x | ) |
|
|
inline |
the members \( x \) read in order
◆ require()
| void ADS::PersistReader::require |
( |
bool | c, |
|
|
const char * | what ) const |
|
inline |
the file rejected, as corrupted in what, unless \( c \)
◆ version()
| std::uint32_t ADS::PersistReader::version |
( |
void | | ) |
const |
|
inlinenodiscard |
the version in the file of the structure being read, between its persistOldestVersion and its persistVersion
◆ loading
| bool ADS::PersistReader::loading = true |
|
staticconstexpr |
The documentation for this class was generated from the following file: