| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #pragma once
- #include <string>
- #include <map>
- #include <iostream>
- #include <array>
- #include <intrin.h>
- #include <vector>
- #include <cstring>
- using std::cout;
- using namespace std;
- class SoftAuther
- {
- SINGLETON_DECLARE(SoftAuther)
- public:
- SoftAuther(void);
- ~SoftAuther(void);
- public:
- void WritessFile(char* fileName,char ch[50]);
- void ReadssFile(char* fileName,char ch[50]);
- char* GetKeyByNumber(string CpuNumber);
- char GetCharByChar(char c);
- char GetCharByChar2(char c);
- char* GetCpuID();
- bool ComareData(char* id,char* psw);
- int TransCodeToDate(string code);
- char GetCharbyChar3(char c);
- bool CompareDate(int current,int readdate);
- void ReadssDateFile(char* fileName,char ch[50]);
- CString GetCpuCodeAuth() {return CpuCodeAuth;}
- int GetAgentCount() {return m_AgentCount;}
- int GetIvrFlowCount() {return m_IvrFlowCount;}
- int GetDateCode() {return m_Date;}
- void InitAutherData(char* FileName);
- private:
- map<char,char> keyValue;
- map<char,char> keyValue2;
- map<char,char> keyValue3;
- CString CpuCodeAuth;
- int m_Date;
- int m_AgentCount;
- int m_IvrFlowCount;
- };
|