1 |
/** @file |
/** @file |
2 |
* $Author: Maurizio Nagni $ |
* $Author: kusanagi $ |
3 |
* $Date: 2005/08/29 09:45:48 $ |
* $Date: 2006/02/07 17:11:09 $ |
4 |
* $Revision: 5.0 $ |
* $Revision: 6.0 $ |
5 |
* |
* |
6 |
* Implementation of the CalibHeaderReader class. |
* Implementation of the CalibHeaderReader class. |
7 |
*/ |
*/ |
26 |
*/ |
*/ |
27 |
std::string CalibHeaderReader::GetVersionInfo(void) const { |
std::string CalibHeaderReader::GetVersionInfo(void) const { |
28 |
return |
return |
29 |
"$Header: /home/cvsmanager/yoda/techmodel/CalibHeaderReader.cpp,v 5.0 2005/08/29 09:46:13 Maurizio Nagni Exp $\n"; |
"$Header: /home/cvsmanager/yoda/techmodel/CalibHeaderReader.cpp,v 6.0 2006/02/07 17:11:09 kusanagi Exp $\n"; |
30 |
} |
} |
31 |
|
|
32 |
/** |
/** |
53 |
readCRC = (((UINT16)(subData[dataLength - 2]<<8))&0xFF00) + (((UINT16)subData[dataLength - 1])&0x00FF); |
readCRC = (((UINT16)(subData[dataLength - 2]<<8))&0xFF00) + (((UINT16)subData[dataLength - 1])&0x00FF); |
54 |
|
|
55 |
if (subCRC != readCRC) throw WrongCRCException(" Wrong CRC for CalibHeader Packet "); |
if (subCRC != readCRC) throw WrongCRCException(" Wrong CRC for CalibHeader Packet "); |
56 |
|
calibHeader->calibHeaderData = new TArrayC(length, subData); |
57 |
} |
} |
58 |
|
|