19 static std::shared_ptr<PropertiesRegistry> propRegistryInstance;
20 std::unordered_map<std::string, std::string> mProperties;
21 std::shared_timed_mutex mPropRegistryMutex;
36 int8_t
createProperty(
const std::string& propertyName,
const std::string& propertyValue);
46 int8_t
queryProperty(
const std::string& propertyName, std::string& result);
56 int8_t
modifyProperty(
const std::string& propertyName,
const std::string& propertyValue);
67 int32_t getPropertiesCount();
69 static std::shared_ptr<PropertiesRegistry> getInstance() {
70 if(propRegistryInstance ==
nullptr) {
71 std::shared_ptr<PropertiesRegistry> localpropRegistryInstance(
new PropertiesRegistry());
72 localpropRegistryInstance.swap(propRegistryInstance);
74 return propRegistryInstance;