CASToR  1.1
Tomographic Reconstruction (PET/SPECT)
 All Classes Files Functions Variables Typedefs Macros Groups Pages
vDynamicModel.cc
Go to the documentation of this file.
1 
2 /*
3  Implementation of class vDynamicModel
4 
5  - separators: X
6  - doxygen: X
7  - default initialization: X
8  - CASTOR_DEBUG: none
9  - CASTOR_VERBOSE: X
10 */
11 
12 
20 #include "vDynamicModel.hh"
21 
22 
23 // =====================================================================
24 // ---------------------------------------------------------------------
25 // ---------------------------------------------------------------------
26 // =====================================================================
27 /*
28  \fn vDynamicModel
29  \brief Constructor of vDynamicModel. Simply set all data members to default values.
30 */
32 {
33  mp_ID = NULL;
34  m_nbTimeBF = -1;
35  m_verbose = -1;
36  m_checked = false;
37  m_initialized = false;
38 }
39 
40 
41 
42 
43 // =====================================================================
44 // ---------------------------------------------------------------------
45 // ---------------------------------------------------------------------
46 // =====================================================================
52 
53 
54 
55 
56 // =====================================================================
57 // ---------------------------------------------------------------------
58 // ---------------------------------------------------------------------
59 // =====================================================================
67 {
68  if(m_verbose>=2) Cout("vDynamicModel::CheckParameters ..."<< endl);
69 
70  // Check image dimensions
71  if (mp_ID==NULL)
72  {
73  Cerr("***** vDynamicModel::CheckParameters() -> No image dimensions provided !" << endl);
74  return 1;
75  }
76 
77  // Check verbosity
78  if (m_verbose<0)
79  {
80  Cerr("***** vDynamicModel::CheckParameters() -> Wrong verbosity level provided !" << endl);
81  return 1;
82  }
83 
84  // Check number of basis functions
85  if (m_nbTimeBF <0)
86  {
87  Cerr("***** vDynamicModel::CheckParameters() -> Basis functions number has not been initialized !" << endl);
88  return 1;
89  }
90 
91  // Check parameters of the child class (if this function is overloaded)
93  {
94  Cerr("***** vDynamicModel::CheckParameters() -> An error occurred while checking parameters of the child dynamic class !" << endl);
95  return 1;
96  }
97 
98  // Normal end
99  m_checked = true;
100  return 0;
101 }
virtual int CheckSpecificParameters()=0
This function is used to check the parameters of the child functions before initialization if require...
virtual int CheckParameters()
This function is used to check parameters after the latter have been all set using Set functions...
oImageDimensionsAndQuantification * mp_ID
#define Cerr(MESSAGE)
virtual ~vDynamicModel()
Destructor of vDynamicModel.
vDynamicModel()
Constructor of vDynamicModel. Simply set all data members to default values.
Declaration of class vDynamicModel.
#define Cout(MESSAGE)