//============================================================================ // $Id: PamOffLineSW_Main.h,v 1.9 2008-02-11 08:20:05 messineo Exp $ // Description : //============================================================================ #ifndef PAMOFFLINESW_MAIN_H_ #define PAMOFFLINESW_MAIN_H_ #error "Not use this file! It is an old file, you can remove it!" //#include "EventReader.h" //#include "PacketUser.h" #define LENGTH_DATA_SIMU 1024 #define LENGTH_CADRE_VRL 1024 #define LENGTH_HEADER_VRL 8 #define LENGTH_DATA_CADRE (LENGTH_CADRE_VRL-LENGTH_HEADER_VRL-1)//1015 namespace PamOffLineSW { //utilities in all the project long int iNumCadres=0; //cadre's number unsigned long long int iByte_tot=0;// how many bytes I have read till now bool isCadreGood = true;//if the cadre is good long int iNumGoodCadres=0; //total number of good cadres // pamela::techmodel::EventReader * reader; } // main functions void mainRead_RealData(char fni[]); void mainRead_SimulatedData(char fni[]); //utilities functions bool VRL_Header_Check(char * headVRL, int length); short int CRC_Cadre_Check(char dataVRL[], int length); //function needed for dbg purposes: void split_input(char fni[]); #endif /*PAMOFFLINESW_MAIN_H_*/