| 1 |
|
|
| 2 |
// Implementation of the EventTrkReader class. |
// Implementation of the EventTrkReader class. |
|
|
|
| 3 |
|
|
|
|
|
|
#include <log4cxx/logger.h> |
|
|
|
|
|
#include <fstream> |
|
| 4 |
#include "ReaderAlgorithms.h" |
#include "ReaderAlgorithms.h" |
| 5 |
|
|
|
#include "event/EventTrkEvent.h" |
|
|
|
|
| 6 |
extern "C" { |
extern "C" { |
| 7 |
//Passo il path verso la il file temporaneo |
//Passo il path verso la il file temporaneo |
| 8 |
extern void trkeventpkt_(int*, unsigned char[], long int*, int*); |
extern void trkeventpkt_(int*, unsigned char[], long int*, int*); |
| 78 |
int ERROR=0; |
int ERROR=0; |
| 79 |
stringstream oss; |
stringstream oss; |
| 80 |
char *subData = new char[length]; |
char *subData = new char[length]; |
| 81 |
|
memset(subData, 0, length*sizeof(char)); |
| 82 |
InputFile->read(subData, sizeof(unsigned char)*length); |
InputFile->read(subData, sizeof(unsigned char)*length); |
| 83 |
int curpos=1; |
int curpos=1; |
| 84 |
|
|