5 #include <ArmarXCore/interface/components/JsonStorageInterface.h>
18 static const char*
const JsonStorage_PropertyName =
"JsonStorageName";
31 impl->componentName = parent<Component>().getName();
36 parent<Component>().usingProxyFromProperty(
impl->propertyName);
42 parent<Component>().getProxyFromProperty(
impl->proxy,
impl->propertyName);
49 properties->defineOptionalProperty<std::string>(
52 "Name of the JSON storage (duh)");
67 JsonRetrieveValue iceResult =
impl->proxy->retrieveValue(key);
70 result.
valid = !iceResult.key.empty();
73 result.
key = iceResult.key;
74 result.
value = nlohmann::json::parse(iceResult.value);
75 result.
provider = iceResult.provider;
76 result.
revision = iceResult.revision;
77 result.
storeTimestamp = IceUtil::Time::microSeconds(iceResult.timestampInMicroSeconds);