1 |
|
/** @file |
2 |
|
* $Author: kusanagi $ |
3 |
|
* $Date: 2006/02/07 10:36:43 $ |
4 |
|
* $Revision: 5.2 $ |
5 |
|
* |
6 |
|
* Implementation of the AcAlarmReader class. |
7 |
|
*/ |
8 |
|
|
|
// Implementation of the AcAlarmReader class. |
|
|
|
|
9 |
|
|
|
#define UINT unsigned int |
|
|
#define BYTE unsigned char |
|
|
#include <string> |
|
10 |
#include <log4cxx/logger.h> |
#include <log4cxx/logger.h> |
|
extern "C" { |
|
|
#include "CRC.h" |
|
|
} |
|
|
|
|
|
#include <fstream> |
|
|
#include "stdio.h" |
|
11 |
#include "ReaderAlgorithms.h" |
#include "ReaderAlgorithms.h" |
12 |
|
|
13 |
using namespace pamela; |
using namespace pamela; |
29 |
*/ |
*/ |
30 |
std::string AcAlarmReader::GetVersionInfo(void) const { |
std::string AcAlarmReader::GetVersionInfo(void) const { |
31 |
return |
return |
32 |
"$Trailer: /home/cvsmanager/yoda/techmodel/acAlarmReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $\n"; |
"$Trailer: /home/cvsmanager/yoda/techmodel/acAlarmReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 Maurizio Nagni Exp $\n"; |
33 |
} |
} |
34 |
|
|
35 |
/** |
/** |
45 |
/** |
/** |
46 |
* Unpack the AcAlarm event from an input file. |
* Unpack the AcAlarm event from an input file. |
47 |
*/ |
*/ |
48 |
void AcAlarmReader::RunEvent(int EventNumber, long int length) throw (WrongCRCException){ |
void AcAlarmReader::RunEvent(int EventNumber, long int dataLength) throw (WrongCRCException){ |
49 |
|
|
50 |
|
logger->warn(_T("Missing definition.... not read")); |
51 |
|
char subData[dataLength]; |
52 |
|
InputFile->read(subData, sizeof(unsigned char)*dataLength); |
53 |
|
|
54 |
|
|
55 |
} |
} |
56 |
|
|