20 #ifndef XRDKCENTRALCOMRFCSTORE_H
21 #define XRDKCENTRALCOMRFCSTORE_H
23 #include "hostIf_tr69ReqHandler.h"
25 #include <unordered_map>
44 string m_local_filename;
46 bool m_updateInProgress;
48 std::unordered_map<std::string, std::string> m_dict;
49 std::unordered_map<std::string, std::string> m_local_dict;
50 std::unordered_map<std::string, std::string> m_nonpersist_dict;
51 std::unordered_map<std::string, std::string> m_dict_rfcdefaults;
57 string getRawValue(
const string &key);
58 bool setRawValue(
const string &key,
const string &value);
59 faultCode_t clearValue(
const string &key,
const string &value);
60 bool writeHashToFile(
const string &key,
const string &value, unordered_map<string, string> &dict,
const string &filename);
61 void initTR181PropertiesFileName();
62 bool loadFileToCache(
const string &filename, unordered_map<string, string> &dict);
63 bool loadTR181PropertiesIntoCache();
66 #endif // XRDKCENTRALCOMRFCSTORE_H