1 |
/** @file |
/** @file |
2 |
* $Source: /home/cvsmanager/yoda/techmodel/McmdReader.cpp,v $ |
* $Source: /home/cvsmanager/yoda/techmodel/McmdReader.cpp,v $ |
3 |
* $Id: McmdReader.cpp,v 1.2 2004/07/17 20:03:38 kusanagi Exp $ |
* $Id: McmdReader.cpp,v 1.3 2004/08/24 16:01:57 kusanagi Exp $ |
4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Implementation of the McmdReader class. |
* Implementation of the McmdReader class. |
41 |
*/ |
*/ |
42 |
std::string McmdReader::GetVersionInfo(void) const { |
std::string McmdReader::GetVersionInfo(void) const { |
43 |
return |
return |
44 |
"$Header: /home/cvsmanager/yoda/techmodel/McmdReader.cpp,v 1.2 2004/07/17 20:03:38 kusanagi Exp $\n"; |
"$Header: /home/cvsmanager/yoda/techmodel/McmdReader.cpp,v 1.3 2004/08/24 16:01:57 kusanagi Exp $\n"; |
45 |
} |
} |
46 |
|
|
47 |
/** |
/** |
165 |
rec->McmdLength = (0x0fff)&(((UINT16)(subHeader[4]<<8)) + ((UINT16)subHeader[5])); |
rec->McmdLength = (0x0fff)&(((UINT16)(subHeader[4]<<8)) + ((UINT16)subHeader[5])); |
166 |
rec->TimeTag = (((UINT32)OBT[6]<<24)&0xFF000000) + (((UINT32)OBT[7]<<16)&0x00FF0000) + (((UINT32)OBT[8]<<8)&0x0000FF00) + (((UINT32)OBT[9])&0x000000FF); |
rec->TimeTag = (((UINT32)OBT[6]<<24)&0xFF000000) + (((UINT32)OBT[7]<<16)&0x00FF0000) + (((UINT32)OBT[8]<<8)&0x0000FF00) + (((UINT32)OBT[9])&0x000000FF); |
167 |
rec->endID = (BYTE)subTrailer[1]; |
rec->endID = (BYTE)subTrailer[1]; |
168 |
rec->setMcmdData((BYTE*)&subData); |
|
169 |
|
rec->McmdData = new TArrayC(dataLength, subData); |
170 |
|
//memcpy(rec->McmdData, (BYTE*)subData, sizeof(rec->McmdData)); |
171 |
|
//rec->setMcmdData((BYTE*)&subData); |
172 |
delete [] subData; |
delete [] subData; |
173 |
} else { |
} else { |
174 |
cat << log4cpp::Priority::ERROR |
cat << log4cpp::Priority::ERROR |