Raven Core
3.0.0
P2P Digital Currency
|
#include <restricteddb.h>
Public Member Functions | |
CRestrictedDB (size_t nCacheSize, bool fMemory=false, bool fWipe=false) | |
CRestrictedDB (const CRestrictedDB &)=delete | |
CRestrictedDB & | operator= (const CRestrictedDB &)=delete |
bool | WriteVerifier (const std::string &assetName, const std::string &verifier) |
bool | ReadVerifier (const std::string &assetName, std::string &verifier) |
bool | EraseVerifier (const std::string &assetName) |
bool | WriteAddressQualifier (const std::string &address, const std::string &tag) |
bool | ReadAddressQualifier (const std::string &address, const std::string &tag) |
bool | EraseAddressQualifier (const std::string &address, const std::string &tag) |
bool | WriteQualifierAddress (const std::string &address, const std::string &tag) |
bool | ReadQualifierAddress (const std::string &address, const std::string &tag) |
bool | EraseQualifierAddress (const std::string &address, const std::string &tag) |
bool | WriteRestrictedAddress (const std::string &address, const std::string &assetName) |
bool | ReadRestrictedAddress (const std::string &address, const std::string &assetName) |
bool | EraseRestrictedAddress (const std::string &address, const std::string &assetName) |
bool | WriteGlobalRestriction (const std::string &assetName) |
bool | ReadGlobalRestriction (const std::string &assetName) |
bool | EraseGlobalRestriction (const std::string &assetName) |
bool | WriteFlag (const std::string &name, bool fValue) |
bool | ReadFlag (const std::string &name, bool &fValue) |
bool | GetQualifierAddresses (std::string &qualifier, std::vector< std::string > &addresses) |
bool | GetAddressQualifiers (std::string &address, std::vector< std::string > &qualifiers) |
bool | GetAddressRestrictions (std::string &address, std::vector< std::string > &restrictions) |
bool | GetGlobalRestrictions (std::vector< std::string > &restrictions) |
bool | CheckForAddressRootQualifier (const std::string &address, const std::string &qualifier) |
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 () |
CDBIterator * | NewIterator () |
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... | |
Definition at line 11 of file restricteddb.h.
|
explicit |
Definition at line 19 of file restricteddb.cpp.
|
delete |
bool CRestrictedDB::CheckForAddressRootQualifier | ( | const std::string & | address, |
const std::string & | qualifier | ||
) |
Definition at line 148 of file restricteddb.cpp.
bool CRestrictedDB::EraseAddressQualifier | ( | const std::string & | address, |
const std::string & | tag | ||
) |
Definition at line 51 of file restricteddb.cpp.
bool CRestrictedDB::EraseGlobalRestriction | ( | const std::string & | assetName | ) |
Definition at line 106 of file restricteddb.cpp.
bool CRestrictedDB::EraseQualifierAddress | ( | const std::string & | address, |
const std::string & | tag | ||
) |
Definition at line 69 of file restricteddb.cpp.
bool CRestrictedDB::EraseRestrictedAddress | ( | const std::string & | address, |
const std::string & | assetName | ||
) |
Definition at line 88 of file restricteddb.cpp.
bool CRestrictedDB::EraseVerifier | ( | const std::string & | assetName | ) |
Definition at line 33 of file restricteddb.cpp.
bool CRestrictedDB::Flush | ( | ) |
bool CRestrictedDB::GetAddressQualifiers | ( | std::string & | address, |
std::vector< std::string > & | qualifiers | ||
) |
bool CRestrictedDB::GetAddressRestrictions | ( | std::string & | address, |
std::vector< std::string > & | restrictions | ||
) |
bool CRestrictedDB::GetGlobalRestrictions | ( | std::vector< std::string > & | restrictions | ) |
bool CRestrictedDB::GetQualifierAddresses | ( | std::string & | qualifier, |
std::vector< std::string > & | addresses | ||
) |
|
delete |
bool CRestrictedDB::ReadAddressQualifier | ( | const std::string & | address, |
const std::string & | tag | ||
) |
Definition at line 45 of file restricteddb.cpp.
bool CRestrictedDB::ReadFlag | ( | const std::string & | name, |
bool & | fValue | ||
) |
bool CRestrictedDB::ReadGlobalRestriction | ( | const std::string & | assetName | ) |
Definition at line 100 of file restricteddb.cpp.
bool CRestrictedDB::ReadQualifierAddress | ( | const std::string & | address, |
const std::string & | tag | ||
) |
bool CRestrictedDB::ReadRestrictedAddress | ( | const std::string & | address, |
const std::string & | assetName | ||
) |
Definition at line 82 of file restricteddb.cpp.
bool CRestrictedDB::ReadVerifier | ( | const std::string & | assetName, |
std::string & | verifier | ||
) |
Definition at line 28 of file restricteddb.cpp.
bool CRestrictedDB::WriteAddressQualifier | ( | const std::string & | address, |
const std::string & | tag | ||
) |
Definition at line 39 of file restricteddb.cpp.
bool CRestrictedDB::WriteFlag | ( | const std::string & | name, |
bool | fValue | ||
) |
bool CRestrictedDB::WriteGlobalRestriction | ( | const std::string & | assetName | ) |
Definition at line 94 of file restricteddb.cpp.
bool CRestrictedDB::WriteQualifierAddress | ( | const std::string & | address, |
const std::string & | tag | ||
) |
Definition at line 57 of file restricteddb.cpp.
bool CRestrictedDB::WriteRestrictedAddress | ( | const std::string & | address, |
const std::string & | assetName | ||
) |
Definition at line 76 of file restricteddb.cpp.
bool CRestrictedDB::WriteVerifier | ( | const std::string & | assetName, |
const std::string & | verifier | ||
) |
Definition at line 23 of file restricteddb.cpp.