//
|
// Created by ke.chen on 2017/8/7.
|
//
|
|
#ifndef RTSPNATIVECODEC_APPCONFIG_H
|
#define RTSPNATIVECODEC_APPCONFIG_H
|
|
#include <json.h>
|
#include <iostream>
|
#include <fstream>
|
#include <sstream>
|
#include <string>
|
|
using namespace std;
|
|
class AppConfig
|
{
|
public:
|
AppConfig();
|
~AppConfig();
|
|
string getStringValue(string key);
|
int getIntValue(string key);
|
void setStringValue(string key, string value);
|
void setIntValue(string key, int value);
|
void loadConfig(string path);
|
void save(string path);
|
void clear();
|
|
private:
|
Json::Value root;
|
};
|
|
#endif //RTSPNATIVECODEC_APPCONFIG_H
|