![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
#include <flatdb.h>
Public Member Functions | |
| CFlatDB (const std::string &strFilenameIn, const std::string &strMagicMessageIn) | |
| fs::path | GetDbPath () const |
| bool | Load (T &objToLoad) |
| bool | Dump (T &objToSave) |
Private Types | |
| enum | ReadResult { Ok , FileError , HashReadError , IncorrectHash , IncorrectMagicMessage , IncorrectMagicNumber , IncorrectFormat } |
Private Member Functions | |
| bool | Write (T &objToSave) |
| ReadResult | Read (T &objToLoad) |
Private Attributes | |
| fs::path | pathDB |
| std::string | strFilename |
| std::string | strMagicMessage |
|
private |
|
inlineprivate |