| 1 |
/** @file |
/** @file |
| 2 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
| 3 |
* $Date: 2004/07/06 13:31:18 $ |
* $Date: 2004/07/17 20:03:38 $ |
| 4 |
* $Revision: 1.2 $ |
* $Revision: 1.4 $ |
| 5 |
* |
* |
| 6 |
* Implementation of the functions of a sample Algorithm class. |
* Implementation of the functions of a sample Algorithm class. |
| 7 |
* This file can be used as a templace to develop your own algorithm. |
* This file can be used as a templace to develop your own algorithm. |
| 35 |
<< "Constructor " |
<< "Constructor " |
| 36 |
<< "\n " << log4cpp::CategoryStream::ENDLINE; |
<< "\n " << log4cpp::CategoryStream::ENDLINE; |
| 37 |
Header = new EventHeader(); |
Header = new EventHeader(); |
| 38 |
/* |
|
|
|
|
|
|
|
|
TechmodelAlgorithmMap.insert(AlgorithmMap::value_type(PacketType::Alarm, |
|
|
new AlarmReader())); |
|
|
TechmodelAlgorithmMap.insert(AlgorithmMap::value_type(PacketType::Khb, |
|
|
new KhbReader())); |
|
|
*/ |
|
| 39 |
TechmodelAlgorithmMap.insert(AlgorithmMap::value_type(PacketType::Physics, new PhysicsReader())); |
TechmodelAlgorithmMap.insert(AlgorithmMap::value_type(PacketType::Physics, new PhysicsReader())); |
|
TechmodelAlgorithmMap.insert(AlgorithmMap::value_type(PacketType::ForcedPkt, new ForcedPktReader())); |
|
| 40 |
TechmodelAlgorithmMap.insert(AlgorithmMap::value_type(PacketType::RunHeader, new RunHeaderReader())); |
TechmodelAlgorithmMap.insert(AlgorithmMap::value_type(PacketType::RunHeader, new RunHeaderReader())); |
| 41 |
TechmodelAlgorithmMap.insert(AlgorithmMap::value_type(PacketType::RunTrailer, new RunTrailerReader())); |
TechmodelAlgorithmMap.insert(AlgorithmMap::value_type(PacketType::RunTrailer, new RunTrailerReader())); |
| 42 |
TechmodelAlgorithmMap.insert(AlgorithmMap::value_type(PacketType::Log, new LogReader())); |
TechmodelAlgorithmMap.insert(AlgorithmMap::value_type(PacketType::Log, new LogReader())); |
| 64 |
*/ |
*/ |
| 65 |
std::string EventReader::GetVersionInfo(void) const { |
std::string EventReader::GetVersionInfo(void) const { |
| 66 |
return |
return |
| 67 |
"$Header: /home/cvsmanager/yoda/techmodel/EventReader.cpp,v 1.2 2004/07/06 13:31:18 kusanagi Exp $\n"; |
"$Header: /home/cvsmanager/yoda/techmodel/EventReader.cpp,v 1.4 2004/07/17 20:03:38 kusanagi Exp $\n"; |
| 68 |
} |
} |
| 69 |
|
|
| 70 |
/** |
/** |
| 217 |
char tmpCRC[4]; |
char tmpCRC[4]; |
| 218 |
sprintf(tmpId1, "%02X", PacketId1); |
sprintf(tmpId1, "%02X", PacketId1); |
| 219 |
sprintf(tmpId2, "%02X", PacketId2); |
sprintf(tmpId2, "%02X", PacketId2); |
| 220 |
sprintf(tmpLength, "%06X", PacketLenght); |
sprintf(tmpLength, "%06X", Header->GetPscuHeader()->GetPacketLenght()); |
| 221 |
sprintf(tmpStart, "%X", ((long int)(InputFile->tellg()) - 16)); |
sprintf(tmpStart, "%X", ((long int)(InputFile->tellg()) - 16)); |
| 222 |
sprintf(tmpCRC, "%02X", CRC); |
sprintf(tmpCRC, "%02X", CRC); |
| 223 |
cat << log4cpp::Priority::INFO |
cat << log4cpp::Priority::INFO |