Wittyshare
0.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
wscore
src
ConfigManager
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
33
class
WsAbstractProperties
{
34
public
:
38
WsAbstractProperties
();
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
60
Json::Value
m_root
;
61
66
bool
m_parsed
;
67
};
68
69
#endif
WsLogger.h
WsAbstractProperties::parse
int parse(const std::string &path)
parse the Json config file
Definition:
WsAbstractProperties.cpp:28
WsAbstractProperties::m_root
Json::Value m_root
Definition:
WsAbstractProperties.h:60
WsAbstractProperties::WsAbstractProperties
WsAbstractProperties()
Default constructor.
Definition:
WsAbstractProperties.cpp:23
WsAbstractProperties
Abstract Properties class.
Definition:
WsAbstractProperties.h:33
RequestField::Value
const std::string Value
Definition:
WsRequestType.h:39
WsAbstractProperties::m_parsed
bool m_parsed
Definition:
WsAbstractProperties.h:66
Generated on Wed Apr 23 2014 14:00:10 for Wittyshare by
1.8.6