NEMeeting SDK
sdk_init_config.h
浏览该文件的文档.
1 
9 #ifndef NEM_SDK_INTERFACE_DEFINE_SDK_INIT_CONFIG_H__
10 #define NEM_SDK_INTERFACE_DEFINE_SDK_INIT_CONFIG_H__
11 
12 #include "public_define.h"
13 #include <string>
14 
16 
21 {
22 public:
27  }
28 
33  std::string SDKPath() const {
34  return sdk_path_;
35  }
36 
42  void SDKPath(const std::string& path) {
43  sdk_path_ = path;
44  }
45 
50  std::string OrganizationName() const {
51  return organization_name_;
52  }
53 
59  void OrganizationName(const std::string& organization_name) {
60  organization_name_ = organization_name;
61  }
62 
67  std::string ApplicationName() const {
68  return application_name_;
69  }
70 
76  void ApplicationName(const std::string& application_name) {
77  application_name_ = application_name;
78  }
79 
84  std::string ProductName() const {
85  return product_name_;
86  }
87 
93  void ProductName(const std::string& product_name) {
94  product_name_ = product_name;
95  }
96 private:
97  std::string sdk_path_;
98  std::string organization_name_;
99  std::string application_name_;
100  std::string product_name_;
101 };
102 
112 };
113 
118 public:
123 
129  std::string LoggerPath() const { return path_; }
130 
136  void LoggerPath(const std::string& path) { path_ = path; }
137 
142  NELogLevel LoggerLevel() const { return level_; }
143 
149  void LoggerLevel(NELogLevel level) { level_ = level; }
150 
151 private:
152  std::string path_;
153  NELogLevel level_ = NEINFO;
154 };
155 
160 {
161 public:
165  NEMeetingSDKConfig() = default;
166 
171  NEMeetingSDKConfig(const std::string& strDomain)
172  : domain(strDomain) {
173  }
174 
179  NEMeetingSDKConfig(std::string&& strDomain)
180  : domain(std::move(strDomain)) {
181  }
182 
183 public:
189  return &appInfo;
190  }
191 
196  std::string getAppKey() const {
197  return appKey;
198  }
199 
205  void setAppKey(const std::string& value) {
206  appKey = value;
207  }
208 
213  std::string getDomain() const {
214  return domain;
215  }
216 
222  void setDomain(const std::string& value) {
223  domain = value;
224  }
225 
234  bool getEnableDebugLog() const {
235  return enableDebugLog;
236  }
237 
245  void setEnableDebugLog(bool value) {
246  enableDebugLog = value;
247  }
248 
256  int getLogSize() const {
257  return logSize;
258  }
259 
267  void setLogSize(int value) {
268  logSize = value;
269  }
270 
277  bool getUseAssetServerConfig() const {
278  return useAssetServerConfig;
279  }
280 
286  void setUseAssetServerConfig(bool bUse) {
287  useAssetServerConfig = bUse;
288  }
289 
295  int getKeepAliveInterval() const {
296  return keepAliveInterval;
297  }
298 
305  void setKeepAliveInterval(int interval) {
306  keepAliveInterval = interval;
307  }
308 
313  NELoggerConfig* getLoggerConfig() const { return &loggerConfig; }
314 
319  bool getRunAdmin() const { return runAdmin; }
320 
327  void setRunAdmin(bool admin) { runAdmin = admin; }
328 
329 private:
330  mutable NEMAppInfo appInfo;
331  std::string appKey;
332  std::string domain;
333  bool enableDebugLog = true;
334  int logSize = 10;
335  bool useAssetServerConfig = false;
336  int keepAliveInterval = 10;
337  bool runAdmin = true;
338  mutable NELoggerConfig loggerConfig;
339 };
340 
342 
343 #endif // NEM_SDK_INTERFACE_DEFINE_SDK_INIT_CONFIG_H__
#define NNEM_SDK_INTERFACE_BEGIN_DECLS
Definition: build_config.h:12
#define NNEM_SDK_INTERFACE_END_DECLS
Definition: build_config.h:13
NELogLevel LoggerLevel() const
获取日志等级
void LoggerPath(const std::string &path)
设置日志路径
void LoggerLevel(NELogLevel level)
设置日志等级
std::string LoggerPath() const
获取日志路径
void OrganizationName(const std::string &organization_name)
设置组织名称
std::string ProductName() const
获取产品名称
std::string OrganizationName() const
获取组织名称
std::string ApplicationName() const
获取应用名称
void ProductName(const std::string &product_name)
设置产品名称
void ApplicationName(const std::string &application_name)
设置应用名称
std::string SDKPath() const
获取SDK路径
void SDKPath(const std::string &path)
设置SDK路径
NEMAppInfo * getAppInfo() const
获取应用信息
NELoggerConfig * getLoggerConfig() const
获取日志配置
void setDomain(const std::string &value)
设置域名
NEMeetingSDKConfig(const std::string &strDomain)
构造函数
std::string getAppKey() const
获取应用appkey
int getKeepAliveInterval() const
获取保活间隔
void setAppKey(const std::string &value)
设置应用appkey
void setRunAdmin(bool admin)
设置运行权限
NEMeetingSDKConfig(std::string &&strDomain)
构造函数
void setKeepAliveInterval(int interval)
设置保活间隔
void setUseAssetServerConfig(bool bUse)
设置是否使用私有化服务配置
bool getUseAssetServerConfig() const
获取是否使用私有化服务配置
bool getEnableDebugLog() const
获取debug日志是否开启
NEMeetingSDKConfig()=default
构造函数
std::string getDomain() const
获取域名
void setLogSize(int value)
设置日志大小
int getLogSize() const
获取日志大小
void setEnableDebugLog(bool value)
设置debug日志是否开启
bool getRunAdmin() const
获取运行权限
NELogLevel
日志等级枚举
#define NEM_SDK_INTERFACE_EXPORT
公共对象定义头文件