1 |
/** @file |
/** @file |
2 |
* $Source: /home/cvsmanager/yoda/techmodel/LogReader.cpp,v $ |
* $Source: /home/cvsmanager/yoda/techmodel/LogReader.cpp,v $ |
3 |
* $Id: LogReader.cpp,v 1.2 2004/07/17 20:03:38 kusanagi Exp $ |
* $Id: LogReader.cpp,v 1.3 2004/08/19 15:24:46 kusanagi Exp $ |
4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Implementation of the LogReader class. |
* Implementation of the LogReader class. |
44 |
*/ |
*/ |
45 |
std::string LogReader::GetVersionInfo(void) const { |
std::string LogReader::GetVersionInfo(void) const { |
46 |
return |
return |
47 |
"$Header: /home/cvsmanager/yoda/techmodel/LogReader.cpp,v 1.2 2004/07/17 20:03:38 kusanagi Exp $\n"; |
"$Header: /home/cvsmanager/yoda/techmodel/LogReader.cpp,v 1.3 2004/08/19 15:24:46 kusanagi Exp $\n"; |
48 |
} |
} |
49 |
|
|
50 |
/** |
/** |
92 |
rec->INFO1 = (((UINT32)subData[offset+8]<<24)&0xFF000000) + (((UINT32)subData[offset+9]<<16)&0x00FF0000) + (((UINT32)subData[offset+10]<<8)&0x0000FF00) + (((UINT32)subData[offset+11])&0x000000FF); |
rec->INFO1 = (((UINT32)subData[offset+8]<<24)&0xFF000000) + (((UINT32)subData[offset+9]<<16)&0x00FF0000) + (((UINT32)subData[offset+10]<<8)&0x0000FF00) + (((UINT32)subData[offset+11])&0x000000FF); |
93 |
offset = offset + 12; |
offset = offset + 12; |
94 |
} |
} |
|
free(subData); |
|
95 |
} else { |
} else { |
96 |
cat << log4cpp::Priority::ERROR |
cat << log4cpp::Priority::ERROR |
97 |
<< "Wrong CRC in Log Packet " |
<< "Wrong CRC in Log Packet " |
98 |
<< "\n " << log4cpp::CategoryStream::ENDLINE; |
<< "\n " << log4cpp::CategoryStream::ENDLINE; |
99 |
} |
} |
100 |
|
delete [] subData; |
101 |
} |
} |