| 1 | /** @file | /** @file | 
| 2 | * $Source: /home/cvspamela/yoda/techmodel/McmdReader.cpp,v $ | * $Source: /home/cvsmanager/yoda/techmodel/McmdReader.cpp,v $ | 
| 3 | * $Id: McmdReader.cpp,v 1.9 2004/04/28 09:01:27 nagni Exp $ | * $Id: McmdReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $ | 
| 4 | * $Author: nagni $ | * $Author: kusanagi $ | 
| 5 | * | * | 
| 6 | * Implementation of the McmdReader class. | * Implementation of the McmdReader class. | 
| 7 | */ | */ | 
| 41 | */ | */ | 
| 42 | std::string McmdReader::GetVersionInfo(void) const { | std::string McmdReader::GetVersionInfo(void) const { | 
| 43 | return | return | 
| 44 | "$Header: /home/cvspamela/yoda/techmodel/McmdReader.cpp,v 1.9 2004/04/28 09:01:27 nagni Exp $\n"; | "$Header: /home/cvsmanager/yoda/techmodel/McmdReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $\n"; | 
| 45 | } | } | 
| 46 |  |  | 
| 47 | /** | /** | 
| 167 | rec->endID           = (BYTE)subTrailer[1]; | rec->endID           = (BYTE)subTrailer[1]; | 
| 168 | rec->setMcmdData((BYTE*)&subData); | rec->setMcmdData((BYTE*)&subData); | 
| 169 | //partialCRC = CM_Compute_CRC16(partialCRC, (BYTE*)&readCRC, 1); | //partialCRC = CM_Compute_CRC16(partialCRC, (BYTE*)&readCRC, 1); | 
| 170 | free(subData); | //free(subData); | 
| 171 | } else { | } else { | 
| 172 | cat <<  log4cpp::Priority::ERROR | cat <<  log4cpp::Priority::ERROR | 
| 173 | <<  "Wrong CRC on Subpacket int MCMD Packet starting at position " << start | <<  "Wrong CRC on Subpacket int MCMD Packet starting at position " << start | 
| 180 |  |  | 
| 181 | if(!(partialCRC == readCRC)) { | if(!(partialCRC == readCRC)) { | 
| 182 | cat <<  log4cpp::Priority::ERROR | cat <<  log4cpp::Priority::ERROR | 
| 183 | <<  "The test of calculated CRC with one wrote on file FAILED!!" | <<  "Wrong CRC for CalibS4 Packet" | 
| 184 | <<  "\n " << log4cpp::CategoryStream::ENDLINE; | <<  "\n " << log4cpp::CategoryStream::ENDLINE; | 
| 185 | } | } | 
| 186 | } | } |