summaryrefslogtreecommitdiffstats
path: root/src/OverridesSettingsRepository.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/OverridesSettingsRepository.h')
-rw-r--r--src/OverridesSettingsRepository.h44
1 files changed, 28 insertions, 16 deletions
diff --git a/src/OverridesSettingsRepository.h b/src/OverridesSettingsRepository.h
index fdb2d7d17..84f13cbd2 100644
--- a/src/OverridesSettingsRepository.h
+++ b/src/OverridesSettingsRepository.h
@@ -6,8 +6,11 @@
class cOverridesSettingsRepository : public cSettingsRepositoryInterface
{
-public:
- cOverridesSettingsRepository(std::unique_ptr<cSettingsRepositoryInterface> a_Main, cSettingsRepositoryInterface & a_Overrides);
+ public:
+ cOverridesSettingsRepository(
+ std::unique_ptr<cSettingsRepositoryInterface> a_Main,
+ cSettingsRepositoryInterface & a_Overrides
+ );
virtual ~cOverridesSettingsRepository() override = default;
@@ -23,28 +26,37 @@ public:
virtual bool DeleteKeyComment(const AString & keyname, const int commentID) override;
- virtual void AddValue (const AString & a_KeyName, const AString & a_ValueName, const AString & a_Value) override;
+ virtual void AddValue(const AString & a_KeyName, const AString & a_ValueName, const AString & a_Value) override;
virtual std::vector<std::pair<AString, AString>> GetValues(AString a_keyName) override;
- virtual AString GetValue (const AString & keyname, const AString & valuename, const AString & defValue = "") const override;
-
- virtual AString GetValueSet (const AString & keyname, const AString & valuename, const AString & defValue = "") override;
- virtual int GetValueSetI(const AString & keyname, const AString & valuename, const int defValue = 0) override;
- virtual Int64 GetValueSetI(const AString & keyname, const AString & valuename, const Int64 defValue = 0) override;
- virtual bool GetValueSetB(const AString & keyname, const AString & valuename, const bool defValue = false) override;
-
- virtual bool SetValue (const AString & a_KeyName, const AString & a_ValueName, const AString & a_Value, const bool a_CreateIfNotExists = true) override;
- virtual bool SetValueI(const AString & a_KeyName, const AString & a_ValueName, const int a_Value, const bool a_CreateIfNotExists = true) override;
+ virtual AString GetValue(const AString & keyname, const AString & valuename, const AString & defValue = "")
+ const override;
+
+ virtual AString GetValueSet(const AString & keyname, const AString & valuename, const AString & defValue = "")
+ override;
+ virtual int GetValueSetI(const AString & keyname, const AString & valuename, const int defValue = 0) override;
+ virtual Int64 GetValueSetI(const AString & keyname, const AString & valuename, const Int64 defValue = 0) override;
+ virtual bool GetValueSetB(const AString & keyname, const AString & valuename, const bool defValue = false) override;
+
+ virtual bool SetValue(
+ const AString & a_KeyName,
+ const AString & a_ValueName,
+ const AString & a_Value,
+ const bool a_CreateIfNotExists = true
+ ) override;
+ virtual bool SetValueI(
+ const AString & a_KeyName,
+ const AString & a_ValueName,
+ const int a_Value,
+ const bool a_CreateIfNotExists = true
+ ) override;
virtual bool DeleteValue(const AString & keyname, const AString & valuename) override;
virtual bool Flush() override;
-private:
-
+ private:
std::unique_ptr<cSettingsRepositoryInterface> m_Main;
cSettingsRepositoryInterface * m_Overrides;
-
};
-