6 #ifndef RAVENCOIN_RESTRICTEDDB_H 7 #define RAVENCOIN_RESTRICTEDDB_H 14 explicit CRestrictedDB(
size_t nCacheSize,
bool fMemory =
false,
bool fWipe =
false);
20 bool WriteVerifier(
const std::string& assetName,
const std::string& verifier);
21 bool ReadVerifier(
const std::string& assetName, std::string& verifier);
45 bool WriteFlag(
const std::string &name,
bool fValue);
46 bool ReadFlag(
const std::string &name,
bool &fValue);
59 #endif //RAVENCOIN_RESTRICTEDDB_H bool WriteQualifierAddress(const std::string &address, const std::string &tag)
CRestrictedDB(size_t nCacheSize, bool fMemory=false, bool fWipe=false)
bool WriteAddressQualifier(const std::string &address, const std::string &tag)
bool WriteFlag(const std::string &name, bool fValue)
bool EraseQualifierAddress(const std::string &address, const std::string &tag)
bool EraseAddressQualifier(const std::string &address, const std::string &tag)
bool GetAddressQualifiers(std::string &address, std::vector< std::string > &qualifiers)
bool ReadGlobalRestriction(const std::string &assetName)
bool EraseGlobalRestriction(const std::string &assetName)
bool ReadVerifier(const std::string &assetName, std::string &verifier)
bool EraseVerifier(const std::string &assetName)
bool CheckForAddressRootQualifier(const std::string &address, const std::string &qualifier)
bool EraseRestrictedAddress(const std::string &address, const std::string &assetName)
bool GetQualifierAddresses(std::string &qualifier, std::vector< std::string > &addresses)
bool ReadAddressQualifier(const std::string &address, const std::string &tag)
bool WriteRestrictedAddress(const std::string &address, const std::string &assetName)
bool ReadFlag(const std::string &name, bool &fValue)
CRestrictedDB & operator=(const CRestrictedDB &)=delete
bool ReadQualifierAddress(const std::string &address, const std::string &tag)
bool GetGlobalRestrictions(std::vector< std::string > &restrictions)
bool GetAddressRestrictions(std::string &address, std::vector< std::string > &restrictions)
bool WriteGlobalRestriction(const std::string &assetName)
bool WriteVerifier(const std::string &assetName, const std::string &verifier)
bool ReadRestrictedAddress(const std::string &address, const std::string &assetName)