From bf63e9396cde256efe8592c20f7d307e3a6a3221 Mon Sep 17 00:00:00 2001
From: pans <pans@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期四, 10 八月 2017 16:23:37 +0800
Subject: [PATCH] add lic
---
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