hd

SoftAuther.h 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #pragma once
  2. #include <string>
  3. #include <map>
  4. #include <iostream>
  5. #include <array>
  6. #include <intrin.h>
  7. #include <vector>
  8. #include <cstring>
  9. using std::cout;
  10. using namespace std;
  11. class SoftAuther
  12. {
  13. SINGLETON_DECLARE(SoftAuther)
  14. public:
  15. SoftAuther(void);
  16. ~SoftAuther(void);
  17. public:
  18. void WritessFile(char* fileName,char ch[50]);
  19. void ReadssFile(char* fileName,char ch[50]);
  20. char* GetKeyByNumber(string CpuNumber);
  21. char GetCharByChar(char c);
  22. char GetCharByChar2(char c);
  23. char* GetCpuID();
  24. bool ComareData(char* id,char* psw);
  25. int TransCodeToDate(string code);
  26. char GetCharbyChar3(char c);
  27. bool CompareDate(int current,int readdate);
  28. void ReadssDateFile(char* fileName,char ch[50]);
  29. CString GetCpuCodeAuth() {return CpuCodeAuth;}
  30. int GetAgentCount() {return m_AgentCount;}
  31. int GetIvrFlowCount() {return m_IvrFlowCount;}
  32. int GetDateCode() {return m_Date;}
  33. void InitAutherData(char* FileName);
  34. private:
  35. map<char,char> keyValue;
  36. map<char,char> keyValue2;
  37. map<char,char> keyValue3;
  38. CString CpuCodeAuth;
  39. int m_Date;
  40. int m_AgentCount;
  41. int m_IvrFlowCount;
  42. };