PIVX Core  5.6.99
P2P Digital Currency
Public Types | Public Member Functions | Private Attributes | List of all members
CBudgetDB Class Reference

Save Budget Manager (budget.dat) More...

#include <budgetdb.h>

Public Types

enum  ReadResult {
  Ok , FileError , HashReadError , IncorrectHash ,
  IncorrectMagicMessage , IncorrectMagicNumber , IncorrectFormat
}
 

Public Member Functions

 CBudgetDB ()
 
bool Write (const CBudgetManager &objToSave)
 
ReadResult Read (CBudgetManager &objToLoad, bool fDryRun=false)
 

Private Attributes

fs::path pathDB
 
std::string strMagicMessage
 

Detailed Description

Save Budget Manager (budget.dat)

Definition at line 17 of file budgetdb.h.

Member Enumeration Documentation

◆ ReadResult

Enumerator
Ok 
FileError 
HashReadError 
IncorrectHash 
IncorrectMagicMessage 
IncorrectMagicNumber 
IncorrectFormat 

Definition at line 24 of file budgetdb.h.

Constructor & Destructor Documentation

◆ CBudgetDB()

CBudgetDB::CBudgetDB ( )

Definition at line 17 of file budgetdb.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ Read()

CBudgetDB::ReadResult CBudgetDB::Read ( CBudgetManager objToLoad,
bool  fDryRun = false 
)

Definition at line 55 of file budgetdb.cpp.

Here is the call graph for this function:

◆ Write()

bool CBudgetDB::Write ( const CBudgetManager objToSave)

Definition at line 23 of file budgetdb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ pathDB

fs::path CBudgetDB::pathDB
private

Definition at line 20 of file budgetdb.h.

◆ strMagicMessage

std::string CBudgetDB::strMagicMessage
private

Definition at line 21 of file budgetdb.h.


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