| | |
| | | #ifndef RTSPNATIVECODEC_APPCONFIG_H
|
| | | #define RTSPNATIVECODEC_APPCONFIG_H
|
| | |
|
| | |
|
| | | #include <json.h>
|
| | | #include <iostream>
|
| | | #include <fstream>
|
| | | #include <sstream>
|
| | | #include <string>
|
| | |
|
| | | using namespace std;
|
| | | class AppConfig {
|
| | |
|
| | | class AppConfig
|
| | | {
|
| | | public:
|
| | | AppConfig();
|
| | | ~AppConfig();
|
| | | 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();
|
| | | 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
|