18 static std::shared_ptr<PropertiesRegistry> propRegistryInstance;
19 std::unordered_map<std::string, std::string> mProperties;
20 std::shared_timed_mutex mPropRegistryMutex;
35 int8_t
createProperty(
const std::string& propertyName,
const std::string& propertyValue);
45 int8_t
queryProperty(
const std::string& propertyName, std::string& result);
55 int8_t
modifyProperty(
const std::string& propertyName,
const std::string& propertyValue);
66 int32_t getPropertiesCount();
68 static std::shared_ptr<PropertiesRegistry> getInstance() {
69 if(propRegistryInstance ==
nullptr) {
70 std::shared_ptr<PropertiesRegistry> localpropRegistryInstance(
new PropertiesRegistry());
71 localpropRegistryInstance.swap(propRegistryInstance);
73 return propRegistryInstance;