25 lines
396 B
C++
25 lines
396 B
C++
#ifndef YC_LIB_CONFIG_H
|
|
#define YC_LIB_CONFIG_H
|
|
|
|
#include <string>
|
|
#include <json/value.h>
|
|
|
|
namespace Yc {
|
|
namespace Lib {
|
|
|
|
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
|