|
- #pragma once
- #include"json.h"
-
- #define JSON_BUSINESS_ERROR_SIZE 10
-
- class Json::Value;
- class CJsonBusiness :public Json::Value
- {
- public:
- CJsonBusiness();
- ~CJsonBusiness();
- CJsonBusiness(WORD x, WORD y) :m_wMainCmd(x), m_wSubCmd(y), m_str(""), m_reader(m_ft) {}
-
- private:
- std::string m_str;//俚륜눔 UTF-8긍쯤목駕
- WORD m_wMainCmd;//寮츱즈
- WORD m_wSubCmd;//綾츱즈
-
- Json::Value m_root;
- Json::FastWriter m_fw;
- Json::Features m_ft;
- Json::Reader m_reader;
- public:
- /*叫駱꽝鑒*/
- bool IsVaildPara(VOID* pData){
- return (NULL == pData);
- }
- /*�零寮-綾츱즈*/
- void SetCmdType(WORD x, WORD y)
- {
- this->m_wMainCmd = x;
- this->m_wSubCmd = y;
- }
- /*삿혤Json俚륜눔UTF-8*/
- std::string GetUTF_8JsonStr()
- {
- return this->m_str;
- }
- /*눈왕令*/
- std::string GetNullJson(VOID* pData);
- void Clear();
-
- std::string JsonWriteUTF_8(Json::Value & root);
- void Log(std::string str);
- void Log(std::string str, const TCHAR* nStr);
- // 쇱駱角뤠관벵景喝俚륜
- bool checkNumber(std::string str);
-
- //國좔롸權濫섀
- std::string GetInfoJson(const DWORD GameID, const TCHAR WanFInfo[68], const std::string strTime, const std::string strMd5, DBR_GR_ClubRecordXianLiao FenXiangRecord);
- //헝헹땐데壇댑 //삿혤綠連마땐데죗깊
- std::string GetInfoJson(TCHAR* ptr, DWORD size);
- };
-
|