// // Created by ke.chen on 2017/8/7. // #ifndef RTSPNATIVECODEC_APPCONFIG_H #define RTSPNATIVECODEC_APPCONFIG_H #include #include #include #include #include using namespace std; class AppConfig { public: AppConfig(); ~AppConfig(); AppConfig(string path); 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