Initial submit
This commit is contained in:
9
config.h
9
config.h
@@ -1,6 +1,8 @@
|
||||
#ifndef YC_LIB_CONFIG_H
|
||||
#define YC_LIB_CONFIG_H
|
||||
|
||||
#include <string>
|
||||
#include <json/value.h>
|
||||
|
||||
namespace Yc {
|
||||
namespace Lib {
|
||||
@@ -9,9 +11,14 @@ class Config
|
||||
{
|
||||
public:
|
||||
Config();
|
||||
void loadConfig();
|
||||
Json::Value value(std::string group, std::string field);
|
||||
Json::Value group(std::string groupName);
|
||||
private:
|
||||
Json::Value jsonConfig;
|
||||
};
|
||||
|
||||
} // namespace Lib
|
||||
} // namespace Yc
|
||||
|
||||
#endif // YC_LIB_CONFIG_H
|
||||
#endif // YC_LIB_CONFIG_H
|
||||
|
||||
Reference in New Issue
Block a user