这段程序什么意思
bool huateng::CFileProcess::ParseTransHead(){
int seekNo = 0;
try
{
//获取结算日期
m_SettleDate = m_FileLine.substr(seekNo,8);
seekNo += 8;
//获取营运单位代码
m_CorpId = m_FileLine.substr(seekNo,8);
seekNo += 8;
//获取记录总数
m_RecNum = CCommon::string2long(m_FileLine.substr(seekNo,10));
seekNo += 10;
}
catch (exception& e)
{
#ifdef _DEBUG
cerr << "Caught: " << e.what() << endl;
cerr << "Type: " << typeid(e).name( ) << endl;
#endif
string errStr = "ParseTransHead Err,ErrMsg:";
errStr += e.what();
WriteLogXml(errStr,"FileProcess",0,1);
m_ErrCode=SYSTEM_ERR;
return false;
}
return true;
}