1 Star 0 Fork 0

爱微城 / iwechen-cfg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
IweChenCfg.h 682 Bytes
一键复制 编辑 原始数据 按行查看 历史
wshy1121 提交于 2017-12-19 11:46 . mod 完善iwechen配置模块
#ifndef _IWECHEN_CFG_H
#define _IWECHEN_CFG_H
#include <rapidjson/document.h>
class IWeChenCfg
{
public:
IWeChenCfg(const std::string &cfgFile);
~IWeChenCfg();
protected:
rapidjson::Document m_cfggDocument;
};
class CWeChenCfg: public IWeChenCfg
{
public:
CWeChenCfg(const std::string &cfgFile);
~CWeChenCfg();
public:
static CWeChenCfg* instance();
public:
const char *GetSecret(const std::string &appId);
const char *GetAppIdTemp(const std::string &appId, const std::string &tempName);
const rapidjson::Value &AppIdCfg(const std::string &appId);
const rapidjson::Value &Cfg();
private:
static CWeChenCfg* _instance;
};
#endif
1
https://gitee.com/AiWeiCheng/iwechen-cfg.git
git@gitee.com:AiWeiCheng/iwechen-cfg.git
AiWeiCheng
iwechen-cfg
iwechen-cfg
master

搜索帮助