Go to the documentation of this file.
79 std::lock_guard lock(
mutex);
83 JsonRetrieveValue& inserted =
data[
value.key];
84 inserted.key =
value.key;
85 inserted.value =
value.value;
86 inserted.provider =
value.provider;
88 inserted.timestampInMicroSeconds = timestampInMicroSeconds;
94 std::lock_guard lock(
mutex);
96 auto it =
data.find(key);
99 return JsonRetrieveValue();
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Creates the property definition container.
void onInitComponent() override
Pure virtual hook for the subclass.
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
void storeJsonValue(const JsonStoreValue &value, const Ice::Current &) override
ARMARX_DECOUPLED_REGISTER_COMPONENT(JsonStorage)
std::shared_ptr< Value > value()
std::string getDefaultName() const override
Retrieve default name of component.
JsonStoragePropertyDefinitions(std::string prefix)
JsonRetrieveValue retrieveValue(const std::string &key, const Ice::Current &) override
void onDisconnectComponent() override
Hook for subclass.
static IceUtil::Time GetTime(TimeMode timeMode=TimeMode::VirtualTime)
Get the current time.
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
std::map< std::string, JsonRetrieveValue > data
Default component property definition container.
void onExitComponent() override
Hook for subclass.
void onConnectComponent() override
Pure virtual hook for the subclass.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
This file offers overloads of toIce() and fromIce() functions for STL container types.