4 #include <ArmarXCore/interface/components/JsonStorageInterface.h>
16 static const char*
const JsonStorage_PropertyName =
"JsonStorageName";
29 impl->componentName = parent<Component>().getName();
34 parent<Component>().usingProxyFromProperty(
impl->propertyName);
41 parent<Component>().getProxyFromProperty(
impl->proxy,
impl->propertyName);
49 properties->defineOptionalProperty<std::string>(
52 "Name of the JSON storage (duh)");
69 JsonRetrieveValue iceResult =
impl->proxy->retrieveValue(key);
72 result.
valid = !iceResult.key.empty();
75 result.
key = iceResult.key;
76 result.
value = nlohmann::json::parse(iceResult.value);
77 result.
provider = iceResult.provider;
78 result.
revision = iceResult.revision;
79 result.
storeTimestamp = IceUtil::Time::microSeconds(iceResult.timestampInMicroSeconds);
92 const nlohmann::json&
value)