From 142117991fae65646bc5dd59d96c4a5c5e8559ca Mon Sep 17 00:00:00 2001
From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期四, 10 八月 2017 14:54:25 +0800
Subject: [PATCH] bug fix
---
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