| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #pragma once
- #include "stdafx.h"
- #include <string>
- #include <map>
- #include <iostream>
- #include <array>
- #include <intrin.h>
- #include <vector>
- #include <cstring>
- #include "../Public/GlobalDef/TemplateTimer.h"
- 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);
- void __onTimerPostProcessing(void); // »°ºó´¦Àíʱ³¤´¦Àí
- void __setTimer(UINT Elapse);
- void __killTimer();
- private:
- map<char,char> keyValue;
- map<char,char> keyValue2;
- map<char,char> keyValue3;
- CString CpuCodeAuth;
- int m_Date;
- int m_AgentCount;
- int m_IvrFlowCount;
- TTimer<SoftAuther> m_AuthTimer;
- };
|