14 #ifndef WS_MENU_TREE_DESERIALIZER_H__
15 #define WS_MENU_TREE_DESERIALIZER_H__
18 #include <json/json.h>
19 #include <json/reader.h>
20 #include <json/writer.h>
21 #include <json/value.h>
WsTreeDeserializer(const std::string &contents)
Constructor.
Reprensents the menu tree of a group. If a group does not have access to a Node, this Node will not s...
boost::shared_ptr< WsAbstractNode > NodePtr
std::string m_contents
Serialized data that will be deserialized.
const std::string & getStamp()
Get the Stamp of the serialized tree.
NodePtr m_rootNode
Root Node.
Json::Value m_root
root of Json Tree
boost::filesystem::path m_rootPath
The root path.
Deserializes a tree serialized with WsTreeSerializer.
int deserialize()
deserialize the Json input
int parse()
parse the Json tree
NodePtr getMenuRoot()
returns the menu root
std::string m_stamp
stamp of the tree
int addSub(const Json::Value &v, NodePtr n)
adds a SubNode to the tree corresponding to the Json entry
Json::Reader m_reader
Json reader.