1 |
//============================================================================ |
2 |
// $Id: PamOffLineSW_Main.h,v 1.9 2008-02-11 08:20:05 messineo Exp $ |
3 |
// Description : |
4 |
//============================================================================ |
5 |
|
6 |
|
7 |
#ifndef PAMOFFLINESW_MAIN_H_ |
8 |
#define PAMOFFLINESW_MAIN_H_ |
9 |
|
10 |
#error "Not use this file! It is an old file, you can remove it!" |
11 |
//#include "EventReader.h" |
12 |
//#include "PacketUser.h" |
13 |
|
14 |
|
15 |
#define LENGTH_DATA_SIMU 1024 |
16 |
#define LENGTH_CADRE_VRL 1024 |
17 |
#define LENGTH_HEADER_VRL 8 |
18 |
#define LENGTH_DATA_CADRE (LENGTH_CADRE_VRL-LENGTH_HEADER_VRL-1)//1015 |
19 |
|
20 |
namespace PamOffLineSW |
21 |
{ |
22 |
//utilities in all the project |
23 |
long int iNumCadres=0; //cadre's number |
24 |
unsigned long long int iByte_tot=0;// how many bytes I have read till now |
25 |
bool isCadreGood = true;//if the cadre is good |
26 |
long int iNumGoodCadres=0; //total number of good cadres |
27 |
// pamela::techmodel::EventReader * reader; |
28 |
} |
29 |
|
30 |
// main functions |
31 |
void mainRead_RealData(char fni[]); |
32 |
void mainRead_SimulatedData(char fni[]); |
33 |
//utilities functions |
34 |
bool VRL_Header_Check(char * headVRL, int length); |
35 |
short int CRC_Cadre_Check(char dataVRL[], int length); |
36 |
//function needed for dbg purposes: |
37 |
void split_input(char fni[]); |
38 |
|
39 |
|
40 |
#endif /*PAMOFFLINESW_MAIN_H_*/ |