You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 line
729 B

  1. #ifndef TESTCONFIG
  2. #define TESTCONFIG
  3. #include <iostream>
  4. #include <map>
  5. #include <string>
  6. #include <stdio.h>
  7. using namespace std;
  8. #define XSDK_HANDLE int
  9. class CTestConfig
  10. {
  11. public:
  12. CTestConfig();
  13. virtual ~CTestConfig();
  14. //系统类配置
  15. virtual int SysDevConfig(XSDK_HANDLE hDevice, int nSeq, int nTimeout, char *pConfig, int nConfigLen)=0;
  16. //通道类配置
  17. virtual int ChnDevConfig(XSDK_HANDLE hDevice, int nChannelNo, int nSeq, int nTimeout, const char *pConfig, int nConfigLen)=0;
  18. public:
  19. //获取到的JSON数据
  20. static int GetJsonData(int nMsgId, int nResult, const char *szCfgName, const char *szResult, int nResultLen, int nSeq);
  21. //public:
  22. // std::map<int, string> m_JsonData;
  23. };
  24. #endif