telsale-management/代码/telsale_aux_kit/source/check.cpp

50 lines
719 B
C++
Raw Normal View History

#include "check.h"
hash_map<string, string> parameters; //<2F><><EFBFBD>Ų<EFBFBD><C5B2><EFBFBD><EFBFBD><EFBFBD>hashmap
//<2F><EFBFBD><E6B1BE>
const string cstrVersion = "0.99";
string strUserCode;
string strUserName;
string strUserPassword;
bool checkVersion()
{
bool result = false;
hash_map<string,string>::iterator iter = parameters.find( string("<EFBFBD><EFBFBD><EFBFBD>") );
if ( iter != parameters.end() && iter->second == cstrVersion )
{
result = true;
}
return result;
}
string getUserCode()
{
return strUserCode;
}
string getUserName()
{
return strUserName;
}
void setUserCode(const string & cstrUserCode)
{
strUserCode = cstrUserCode;
}
void setUserName(const string & cstrUserName)
{
strUserName = cstrUserName;
}
string getVersion()
{
return cstrVersion;
}