Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsAbstractProperties.h
Go to the documentation of this file.
1 
14 #ifndef WS_ABSTRACT_PROPERTIES_H__
15 #define WS_ABSTRACT_PROPERTIES_H__
16 
17 #include <iostream>
18 #include <fstream>
19 
20 #include <Logger/WsLogger.h>
21 
22 #include <json/json.h>
23 #include <json/value.h>
24 #include <json/reader.h>
25 
34 public:
39 
47  virtual std::string get(const std::string& section, const std::string& id, const std::string& def) = 0;
48 
49 protected:
55  int parse(const std::string& path);
56 
61 
66  bool m_parsed;
67 };
68 
69 #endif
int parse(const std::string &path)
parse the Json config file
WsAbstractProperties()
Default constructor.
Abstract Properties class.
const std::string Value
Definition: WsRequestType.h:39