5 #ifndef RAVENCOIN_MESSAGEDB_H 6 #define RAVENCOIN_MESSAGEDB_H 16 explicit CMessageDB(
size_t nCacheSize,
bool fMemory =
false,
bool fWipe =
false);
29 bool WriteFlag(
const std::string &name,
bool fValue);
30 bool ReadFlag(
const std::string &name,
bool &fValue);
37 explicit CMessageChannelDB(
size_t nCacheSize,
bool fMemory =
false,
bool fWipe =
false);
43 bool WriteMyMessageChannel(
const std::string& channelname);
44 bool ReadMyMessageChannel(
const std::string& channelname);
45 bool EraseMyMessageChannel(
const std::string& channelname);
46 bool LoadMyMessageChannels(std::set<std::string>& setChannels);
48 bool WriteUsedAddress(
const std::string& address);
49 bool ReadUsedAddress(
const std::string& address);
50 bool EraseUsedAddress(
const std::string& address);
53 bool WriteFlag(
const std::string &name,
bool fValue);
54 bool ReadFlag(
const std::string &name,
bool &fValue);
60 #endif //RAVENCOIN_MESSAGEDB_H
bool LoadMessages(std::set< CMessage > &setMessages)
CMessageDB(size_t nCacheSize, bool fMemory=false, bool fWipe=false)
bool EraseAllMessages(int &count)
bool ReadMessage(const COutPoint &out, CMessage &message)
bool ReadFlag(const std::string &name, bool &fValue)
CMessageDB & operator=(const CMessageDB &)=delete
bool EraseMessage(const COutPoint &out)
An outpoint - a combination of a transaction hash and an index n into its vout.
bool WriteMessage(const CMessage &message)
bool WriteFlag(const std::string &name, bool fValue)