Raven Core  3.0.0
P2P Digital Currency
Public Member Functions | List of all members
CMessageChannelDB Class Reference

#include <messagedb.h>

Inheritance diagram for CMessageChannelDB:
[legend]
Collaboration diagram for CMessageChannelDB:
[legend]

Public Member Functions

 CMessageChannelDB (size_t nCacheSize, bool fMemory=false, bool fWipe=false)
 
 CMessageChannelDB (const CMessageChannelDB &)=delete
 
CMessageChannelDBoperator= (const CMessageChannelDB &)=delete
 
bool WriteMyMessageChannel (const std::string &channelname)
 
bool ReadMyMessageChannel (const std::string &channelname)
 
bool EraseMyMessageChannel (const std::string &channelname)
 
bool LoadMyMessageChannels (std::set< std::string > &setChannels)
 
bool WriteUsedAddress (const std::string &address)
 
bool ReadUsedAddress (const std::string &address)
 
bool EraseUsedAddress (const std::string &address)
 
bool WriteFlag (const std::string &name, bool fValue)
 
bool ReadFlag (const std::string &name, bool &fValue)
 
bool Flush ()
 
- Public Member Functions inherited from CDBWrapper
 CDBWrapper (const fs::path &path, size_t nCacheSize, bool fMemory=false, bool fWipe=false, bool obfuscate=false, size_t maxFileSize=2<< 20)
 
 ~CDBWrapper ()
 
template<typename K , typename V >
bool Read (const K &key, V &value) const
 
template<typename K , typename V >
bool Write (const K &key, const V &value, bool fSync=false)
 
template<typename K >
bool Exists (const K &key) const
 
template<typename K >
bool Erase (const K &key, bool fSync=false)
 
bool WriteBatch (CDBBatch &batch, bool fSync=false)
 
bool Flush ()
 
bool Sync ()
 
CDBIteratorNewIterator ()
 
bool IsEmpty ()
 Return true if the database managed by this class contains no entries. More...
 
template<typename K >
size_t EstimateSize (const K &key_begin, const K &key_end) const
 
template<typename K >
void CompactRange (const K &key_begin, const K &key_end) const
 Compact a certain range of keys in the database. More...
 

Detailed Description

Definition at line 35 of file messagedb.h.

Constructor & Destructor Documentation

◆ CMessageChannelDB() [1/2]

CMessageChannelDB::CMessageChannelDB ( size_t  nCacheSize,
bool  fMemory = false,
bool  fWipe = false 
)
explicit

Definition at line 122 of file messagedb.cpp.

◆ CMessageChannelDB() [2/2]

CMessageChannelDB::CMessageChannelDB ( const CMessageChannelDB )
delete

Member Function Documentation

◆ EraseMyMessageChannel()

bool CMessageChannelDB::EraseMyMessageChannel ( const std::string &  channelname)

Definition at line 136 of file messagedb.cpp.

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

◆ EraseUsedAddress()

bool CMessageChannelDB::EraseUsedAddress ( const std::string &  address)

Definition at line 187 of file messagedb.cpp.

Here is the call graph for this function:

◆ Flush()

bool CMessageChannelDB::Flush ( )

Definition at line 206 of file messagedb.cpp.

Here is the call graph for this function:

◆ LoadMyMessageChannels()

bool CMessageChannelDB::LoadMyMessageChannels ( std::set< std::string > &  setChannels)

Definition at line 141 of file messagedb.cpp.

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

◆ operator=()

CMessageChannelDB& CMessageChannelDB::operator= ( const CMessageChannelDB )
delete

◆ ReadFlag()

bool CMessageChannelDB::ReadFlag ( const std::string &  name,
bool &  fValue 
)

Definition at line 197 of file messagedb.cpp.

Here is the call graph for this function:

◆ ReadMyMessageChannel()

bool CMessageChannelDB::ReadMyMessageChannel ( const std::string &  channelname)

Definition at line 130 of file messagedb.cpp.

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

◆ ReadUsedAddress()

bool CMessageChannelDB::ReadUsedAddress ( const std::string &  address)

Definition at line 182 of file messagedb.cpp.

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

◆ WriteFlag()

bool CMessageChannelDB::WriteFlag ( const std::string &  name,
bool  fValue 
)

Definition at line 192 of file messagedb.cpp.

Here is the call graph for this function:

◆ WriteMyMessageChannel()

bool CMessageChannelDB::WriteMyMessageChannel ( const std::string &  channelname)

Definition at line 125 of file messagedb.cpp.

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

◆ WriteUsedAddress()

bool CMessageChannelDB::WriteUsedAddress ( const std::string &  address)

Definition at line 178 of file messagedb.cpp.

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

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