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

Save Masternode Payment Data (mnpayments.dat) More...

#include <masternode-payments.h>

Public Types

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

Public Member Functions

 CMasternodePaymentDB ()
 
bool Write (const CMasternodePayments &objToSave)
 
ReadResult Read (CMasternodePayments &objToLoad, bool fDryRun=false)
 

Private Attributes

fs::path pathDB
 
std::string strMagicMessage
 

Detailed Description

Save Masternode Payment Data (mnpayments.dat)

Definition at line 38 of file masternode-payments.h.

Member Enumeration Documentation

◆ ReadResult

Enumerator
Ok 
FileError 
HashReadError 
IncorrectHash 
IncorrectMagicMessage 
IncorrectMagicNumber 
IncorrectFormat 

Definition at line 45 of file masternode-payments.h.

Constructor & Destructor Documentation

◆ CMasternodePaymentDB()

CMasternodePaymentDB::CMasternodePaymentDB ( )

Definition at line 29 of file masternode-payments.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ Read()

CMasternodePaymentDB::ReadResult CMasternodePaymentDB::Read ( CMasternodePayments objToLoad,
bool  fDryRun = false 
)

Definition at line 66 of file masternode-payments.cpp.

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

◆ Write()

bool CMasternodePaymentDB::Write ( const CMasternodePayments objToSave)

Definition at line 35 of file masternode-payments.cpp.

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

Member Data Documentation

◆ pathDB

fs::path CMasternodePaymentDB::pathDB
private

Definition at line 41 of file masternode-payments.h.

◆ strMagicMessage

std::string CMasternodePaymentDB::strMagicMessage
private

Definition at line 42 of file masternode-payments.h.


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