26 #ifndef INCLUDED_WrapRoute_h_GUID_CC93B3E1_2C30_42AE_9880_FE43AD40AB81 27 #define INCLUDED_WrapRoute_h_GUID_CC93B3E1_2C30_42AE_9880_FE43AD40AB81 33 #include <json/value.h> 38 inline Json::Value wrapRoute(Json::Value currentRoute, Json::Value newLevel) {
40 Json::Value ret = currentRoute;
41 Json::Value prevSource = currentRoute[routing_keys::source()];
42 ret[routing_keys::source()] = newLevel;
43 ret[routing_keys::source()][routing_keys::child()] = prevSource;
47 #endif // INCLUDED_WrapRoute_h_GUID_CC93B3E1_2C30_42AE_9880_FE43AD40AB81 Definition: RoutingKeys.h:40