From 2b43077d967c28fe99e1ff2b99f19e1433c710d9 Mon Sep 17 00:00:00 2001 From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674> Date: 星期四, 17 八月 2017 12:28:36 +0800 Subject: [PATCH] aaaaa --- VisitFace/RtspNativeCodec/app/src/main/cpp/AppConfig.h | 25 ++++++++++++++----------- 1 files changed, 14 insertions(+), 11 deletions(-) diff --git a/VisitFace/RtspNativeCodec/app/src/main/cpp/AppConfig.h b/VisitFace/RtspNativeCodec/app/src/main/cpp/AppConfig.h index 0f9958c..ebbf22b 100644 --- a/VisitFace/RtspNativeCodec/app/src/main/cpp/AppConfig.h +++ b/VisitFace/RtspNativeCodec/app/src/main/cpp/AppConfig.h @@ -5,27 +5,30 @@ #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(); + 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 -- Gitblit v1.8.0