PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Types | Public Member Functions | Private Attributes | List of all members
CBudgetDB Class Reference

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

#include <masternode-budget.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 146 of file masternode-budget.h.

Member Enumeration Documentation

◆ ReadResult

Enumerator
Ok 
FileError 
HashReadError 
IncorrectHash 
IncorrectMagicMessage 
IncorrectMagicNumber 
IncorrectFormat 

Definition at line 153 of file masternode-budget.h.

Constructor & Destructor Documentation

◆ CBudgetDB()

CBudgetDB::CBudgetDB ( )

Definition at line 248 of file masternode-budget.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 287 of file masternode-budget.cpp.

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

◆ Write()

bool CBudgetDB::Write ( const CBudgetManager objToSave)

Definition at line 254 of file masternode-budget.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 149 of file masternode-budget.h.

◆ strMagicMessage

std::string CBudgetDB::strMagicMessage
private

Definition at line 150 of file masternode-budget.h.


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