Go to the documentation of this file.
84 std::lock_guard lock(
mutex);
88 JsonRetrieveValue& inserted =
data[
value.key];
89 inserted.key =
value.key;
90 inserted.value =
value.value;
91 inserted.provider =
value.provider;
93 inserted.timestampInMicroSeconds = timestampInMicroSeconds;
98 std::lock_guard lock(
mutex);
100 auto it =
data.find(key);
101 if (it ==
data.end())
103 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.