|
Wittyshare
0.2
|
Deserializes a tree serialized with WsTreeSerializer. More...
#include <WsTreeDeserializer.h>

Public Member Functions | |
| WsTreeDeserializer (const std::string &contents) | |
| Constructor. More... | |
| int | deserialize () |
| deserialize the Json input More... | |
| NodePtr | getMenuRoot () |
| returns the menu root More... | |
| const std::string & | getStamp () |
| Get the Stamp of the serialized tree. More... | |
Private Member Functions | |
| int | parse () |
| parse the Json tree More... | |
| int | addSub (const Json::Value &v, NodePtr n) |
| adds a SubNode to the tree corresponding to the Json entry More... | |
Private Attributes | |
| NodePtr | m_rootNode |
| Root Node. More... | |
| Json::Value | m_root |
| root of Json Tree More... | |
| Json::Reader | m_reader |
| Json reader. More... | |
| std::string | m_stamp |
| stamp of the tree More... | |
| std::string | m_contents |
| Serialized data that will be deserialized. More... | |
| boost::filesystem::path | m_rootPath |
| The root path. More... | |
Deserializes a tree serialized with WsTreeSerializer.
Definition at line 28 of file WsTreeDeserializer.h.
| WsTreeDeserializer::WsTreeDeserializer | ( | const std::string & | contents | ) |
Constructor.
| contents | the tree Json input to deserialize |
Definition at line 17 of file WsTreeDeserializer.cpp.
|
private |
adds a SubNode to the tree corresponding to the Json entry
Definition at line 36 of file WsTreeDeserializer.cpp.

| int WsTreeDeserializer::deserialize | ( | ) |
deserialize the Json input
Definition at line 21 of file WsTreeDeserializer.cpp.


| NodePtr WsTreeDeserializer::getMenuRoot | ( | ) |
returns the menu root
Definition at line 84 of file WsTreeDeserializer.cpp.

| const string & WsTreeDeserializer::getStamp | ( | ) |
Get the Stamp of the serialized tree.
Definition at line 69 of file WsTreeDeserializer.cpp.

|
private |
parse the Json tree
Definition at line 75 of file WsTreeDeserializer.cpp.

|
private |
Serialized data that will be deserialized.
Definition at line 89 of file WsTreeDeserializer.h.
|
private |
Json reader.
Definition at line 79 of file WsTreeDeserializer.h.
|
private |
root of Json Tree
Definition at line 74 of file WsTreeDeserializer.h.
|
private |
Root Node.
Definition at line 69 of file WsTreeDeserializer.h.
|
private |
The root path.
Definition at line 95 of file WsTreeDeserializer.h.
|
private |
stamp of the tree
Definition at line 84 of file WsTreeDeserializer.h.
1.8.6