17 #ifndef jsonHelpers_H_ 18 #define jsonHelpers_H_ 20 #ifndef DISABLE_REST_API 21 #include <Poco/JSON/Object.h> 27 Poco::JSON::Object::Ptr make_object(
const std::string&
key,
const Poco::Dynamic::Var& val );
28 Poco::JSON::Object::Ptr make_object(
const std::string&
key,
const Poco::Dynamic::Var&& val );
29 Poco::JSON::Object::Ptr make_child( Poco::JSON::Object::Ptr& root,
const std::string&
key );
30 Poco::JSON::Array::Ptr make_child_array( Poco::JSON::Object::Ptr& root,
const std::string&
key );
39 item( Poco::JSON::Object::Ptr& ptr );
40 item(
const std::string& cmd,
const std::string& description );
42 void param(
const std::string& name,
const std::string& description );
43 Poco::JSON::Object::Ptr
get();
45 operator Poco::JSON::Object::Ptr();
46 operator Poco::Dynamic::Var();
49 Poco::JSON::Object::Ptr root;
50 Poco::JSON::Array::Ptr params;
56 object(
const std::string& name );
57 object(
const std::string& name, Poco::JSON::Object::Ptr ptr );
60 void emplace(
item&& i );
62 Poco::JSON::Object::Ptr
get();
64 operator Poco::JSON::Object::Ptr();
65 operator Poco::Dynamic::Var();
68 Poco::JSON::Object::Ptr root;
69 Poco::JSON::Array::Ptr cmdlist;
77 #endif // end of #ifndef DISABLE_REST_API 79 #endif // end of _jsonHelpers_H_ Definition: CallbackTimer.h:29
static KeyType key(const uniset::ObjectId id, const uniset::ObjectId node)
Definition: UniSetTypes.h:84