CASToR  1.1
Tomographic Reconstruction (PET/SPECT)
 All Classes Files Functions Variables Typedefs Macros Groups Pages
iDataFileTransmission.hh
Go to the documentation of this file.
1 
8 #ifndef IDATAFILETRANSMISSION_HH
9 #define IDATAFILETRANSMISSION_HH 1
10 
11 #include "gVariables.hh"
12 #include "vDataFile.hh"
13 #include "vScanner.hh"
14 
15 
16 
17 
25 {
26  // -------------------------------------------------------------------
27  // Constructor & Destructor
28  public:
30  virtual ~iDataFileTransmission();
31 
32 
33  // -------------------------------------------------------------------
34  // Public member functions
35  public:
36  int ComputeSizeEvent() {return -1;}
37  int PrepareDataFile() {return -1;}
38  vEvent* GetEventFromBuffer(char* ap_buffer, int a_th) {return NULL;}
39  int PROJ_InitFile() {return -1;}
41  int PROJ_WriteEvent(vEvent* ap_Event, int a_th) {return -1;}
42  int PROJ_WriteHeader() {return -1;}
43 
44 
45  // -------------------------------------------------------------------
46  // Private member functions
47  private:
48  int CheckSpecificParameters() {return -1;}
49  int CheckFileSizeConsistency() {return -1;}
50  int ReadSpecificInfoInHeader(bool a_affectQuantificationFlag) {return -1;}
52 
53 
54  // -------------------------------------------------------------------
55  // Data members
56  private:
57 };
58 
59 #endif
This class is designed to be a mother virtual class for Datafile.
Definition: vDataFile.hh:67
This header file is mainly used to declare some macro definitions and all includes needed from the st...
int ComputeSizeEvent()
This function is implemented in child classes Computation of the size of each event according to th...
int CheckSpecificConsistencyWithAnotherDatafile(vDataFile *ap_Datafile)
Check consistency between 'this' and the provided datafile, for specific characteristics.
int PROJ_WriteHeader()
This function is implemented in child classes. Generate a header file according to the projection a...
int CheckSpecificParameters()
This function is implemented in child classes Check specific parameters of child classes...
Declaration of class vScanner.
Declaration of class vDataFile.
int PROJ_WriteEvent(vEvent *ap_Event, int a_th)
This function is implemented in child classes Write event according to the chosen type of data...
int ReadSpecificInfoInHeader(bool a_affectQuantificationFlag)
This function is implemented in child classes Read and check modality-specific information from the...
vEvent * GetEventFromBuffer(char *ap_buffer, int a_th)
This function is implemented in child classes Read an event from the position pointed by 'ap_buffer...
int PROJ_InitFile()
This function is implemented in child classes Initialize the fstream objets for output writing as w...
Mother class for the Event objects.
Definition: vEvent.hh:23
Inherit from vDataFile.
int PrepareDataFile()
This function is implemented in child classes Store different kind of information inside arrays (da...
int PROJ_GetScannerSpecificParameters()
This function is implemented in child classes It is used to set several variables of the datafile w...