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.1.1.1 2004/07/06 12:20:23 kusanagi Exp $ |
* $Id: LogReader.cpp,v 1.2 2004/07/17 20:03:38 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.1.1.1 2004/07/06 12:20:23 kusanagi Exp $\n"; |
"$Header: /home/cvsmanager/yoda/techmodel/LogReader.cpp,v 1.2 2004/07/17 20:03:38 kusanagi Exp $\n"; |
48 |
} |
} |
49 |
|
|
50 |
/** |
/** |
85 |
TClonesArray &recs = *(Log->Records); |
TClonesArray &recs = *(Log->Records); |
86 |
while (offset < dataLength){ |
while (offset < dataLength){ |
87 |
rec = new(recs[i++]) LogRecord(); //add a new Log |
rec = new(recs[i++]) LogRecord(); //add a new Log |
88 |
rec->LG_RECORD_OBT = (((UINT32)subData[offset]<<24)&0xFF000000) + (((UINT32)subData[offset+1]<<16)&0x00FF0000) + (((UINT32)subData[offset+2]<<8)&0x0000FF00) + (((UINT32)subData[offset+3])&0x000000FF); |
rec->RECORD_OBT = (((UINT32)subData[offset]<<24)&0xFF000000) + (((UINT32)subData[offset+1]<<16)&0x00FF0000) + (((UINT32)subData[offset+2]<<8)&0x0000FF00) + (((UINT32)subData[offset+3])&0x000000FF); |
89 |
rec->LG_LINE = (((UINT16)subData[offset+4]<<8)&0xFF00) + (((UINT16)subData[offset+5])&0x00FF); |
rec->MASKTYPE = (((UINT8)subData[offset+4]<<8)&0xFF); |
90 |
rec->LG_INFO = (((UINT16)subData[offset+6]<<8)&0xFF00) + (((UINT16)subData[offset+7])&0x00FF); |
rec->FILE_ID = (((UINT8)subData[offset+5]<<8)&0xFF); |
91 |
rec->LG_FILE_ID = ((UINT8)subData[offset+8])&0xFF; |
rec->LINE_NO = ((((UINT16)subData[offset+6]<<8)&0xFF00) + (((UINT16)subData[offset+7])&0x00FF)); |
92 |
offset = offset + 9; |
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; |
94 |
} |
} |
95 |
free(subData); |
free(subData); |
96 |
} else { |
} else { |