6 #include <unordered_map> 28 virtual std::vector<std::pair<AString, AString>>
GetValues(
AString a_keyName)
override;
38 virtual bool SetValue (
const AString & a_KeyName,
const AString & a_ValueName,
const AString & a_Value,
const bool a_CreateIfNotExists =
true)
override;
39 virtual bool SetValueI(
const AString & a_KeyName,
const AString & a_ValueName,
const int a_Value,
const bool a_CreateIfNotExists =
true)
override;
43 virtual bool Flush()
override;
103 std::unordered_map<AString, std::unordered_multimap<AString, sValue>>
m_Map{};
virtual bool KeyExists(const AString keyname) const override
Returns true iff the specified key exists.
virtual bool SetValueI(const AString &a_KeyName, const AString &a_ValueName, const int a_Value, const bool a_CreateIfNotExists=true) override
AString getStringValue() const
virtual AString GetValueSet(const AString &keyname, const AString &valuename, const AString &defValue="") override
Gets the value; if not found, write the default to the repository.
virtual bool GetValueSetB(const AString &keyname, const AString &valuename, const bool defValue=false) override
virtual int GetValueSetI(const AString &keyname, const AString &valuename, const int defValue=0) override
virtual bool Flush() override
Writes the changes to the backing store, if the repository has one.
virtual std::vector< std::pair< AString, AString > > GetValues(AString a_keyName) override
returns a vector containing a name, value pair for each value under the key
Int64 getIntValue() const
virtual void AddValue(const AString &a_KeyName, const AString &a_ValueName, const AString &a_Value) override
Adds a new value to the specified key.
virtual bool DeleteValue(const AString &keyname, const AString &valuename) override
Deletes the specified key, value pair.
virtual int AddKeyName(const AString &keyname) override
Add a key name.
std::unordered_map< AString, std::unordered_multimap< AString, sValue > > m_Map
virtual bool HasValue(const AString &a_KeyName, const AString &a_ValueName) const override
Returns true iff the specified value exists.
virtual bool SetValue(const AString &a_KeyName, const AString &a_ValueName, const AString &a_Value, const bool a_CreateIfNotExists=true) override
Overwrites the value of the key, value pair Specify the optional parameter as false if you do not wan...
bool getBoolValue() const
virtual bool AddKeyComment(const AString &keyname, const AString &comment) override
Add a key comment, will always fail if the repository does not support comments.
virtual bool DeleteKeyComment(const AString &keyname, const int commentID) override
Delete a key comment, will always fail if the repository does not support comments.
virtual AString GetKeyComment(const AString &keyname, const int commentID) const override
Return a key comment, returns "" for repositories that do not return comments.
virtual AString GetValue(const AString &keyname, const AString &valuename, const AString &defValue="") const override
Get the value at the specified key and value, returns defValue on failure.