1 |
/** @file |
/** @file |
2 |
* $Source: /home/cvsmanager/yoda/techmodel/McmdReader.cpp,v $ |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/McmdReader.cpp,v $ |
3 |
* $Id: McmdReader.cpp,v 6.1 2006/05/30 19:10:02 kusanagi Exp $ |
* $Id: McmdReader.cpp,v 6.2 2006/05/30 19:10:03 kusanagi Exp $ |
4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Implementation of the McmdReader class. |
* Implementation of the McmdReader class. |
28 |
*/ |
*/ |
29 |
std::string McmdReader::GetVersionInfo(void) const { |
std::string McmdReader::GetVersionInfo(void) const { |
30 |
return |
return |
31 |
"$Header: /home/cvsmanager/yoda/techmodel/McmdReader.cpp,v 6.1 2006/05/30 19:10:02 kusanagi Exp $\n"; |
"$Header: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/McmdReader.cpp,v 6.2 2006/05/30 19:10:03 kusanagi Exp $\n"; |
32 |
} |
} |
33 |
|
|
34 |
/** |
/** |
119 |
// else set subData to 0 |
// else set subData to 0 |
120 |
//if(dataLength > 0){ |
//if(dataLength > 0){ |
121 |
subData = new char[dataLength]; |
subData = new char[dataLength]; |
122 |
|
memset(subData, 0, dataLength*sizeof(char)); |
123 |
InputFile->read(subData, sizeof(unsigned char)*dataLength); |
InputFile->read(subData, sizeof(unsigned char)*dataLength); |
124 |
for (int jj = 0; jj < dataLength ; jj++){ |
for (int jj = 0; jj < dataLength ; jj++){ |
125 |
subCRC = CM_Compute_CRC16(subCRC, (BYTE*)(subData+jj), 1); |
subCRC = CM_Compute_CRC16(subCRC, (BYTE*)(subData+jj), 1); |