Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsArrayDeserializer.h
Go to the documentation of this file.
1 
13 #ifndef WS_ARRAY_DESERIALIZER_H__
14 #define WS_ARRAY_DESERIALIZER_H__
15 
18 
19 #include <json/json.h>
20 #include <json/reader.h>
21 #include <json/writer.h>
22 #include <json/value.h>
23 
24 #include <iostream>
25 
32 public:
33 
38  WsArrayDeserializer(const std::string& json);
39 
44  int deserialize();
45 
49  const std::set<std::string> getContents();
50 
51 private:
55  int parse();
56 
60  std::string m_json;
61 
65  Json::Reader m_reader;
66 
71 
75  std::set<std::string> m_contents;
76 
77 
78 
79 };
80 
81 #endif
int deserialize()
Deserialize contents serialized by WsArraySerialize::serialize.
std::set< std::string > m_contents
A dir node.
std::string m_json
Json code.
Json::Reader m_reader
Json reader.
int parse()
parse the Json
Deserializes an array.
const std::string Value
Definition: WsRequestType.h:39
WsArrayDeserializer(const std::string &json)
Constructor.
Json::Value m_root
Root of the Json tree.
const std::set< std::string > getContents()
returns the set serialized The method deserialize must be called prior to this method ...