C++ main module for gpm Package  1.0
GPM_CoreRun.h
Go to the documentation of this file.
1 #ifndef GPM_CoreRun_H
2 #define GPM_CoreRun_H
3 
4 #include "CORE_Object.h"
5 
14 class GPM_CoreRun : public virtual CORE_Object {
15  SP_OBJECT(GPM_CoreRun);
16 
17  //attributes
18 public :
19 
20 
21 protected:
22  // CONSTRUCTORS
25  GPM_CoreRun(void);
26 
27  // DESTRUCTORS
30  virtual ~GPM_CoreRun(void);
31 
32 public:
35  inline static SP::GPM_CoreRun New() {
36  SP::GPM_CoreRun p(new GPM_CoreRun(),GPM_CoreRun::Delete());
37  p->setThis(p);
38  return p;
39  };
40 
41 
42 public :
43 
44  // MAIN Method
45 
48  virtual tBoolean run(int argc,char* argv[]) const ;
49 
52  virtual tString man() const;
53 
56  virtual tBoolean runTests() const;
59  virtual tBoolean runTutorials() const;
60 
61 private:
64  map<tString,tString> readOptions(int argc,char *argv[]) const;
65 
68  tBoolean readBoolean(const tString& fn) const;
71  int readInt(const tString& fn) const;
74  tReal readReal(const tString& fn) const;
75 
78  tString readPath(const tString& path) const;
79 
82  tString readFile(const tString& path, const tString& fn) const;
83 
84 
85 
86 };
87 
88 
89 #endif
virtual tBoolean runTests() const
run the test
Definition: GPM_CoreRun.cpp:115
This class is a Run class for GPM/Core.
Definition: GPM_CoreRun.h:14
virtual tBoolean run(int argc, char *argv[]) const
run the progrm
Definition: GPM_CoreRun.cpp:134
virtual tString man() const
return the man
Definition: GPM_CoreRun.cpp:20
#define tBoolean
Definition: types.h:35
static SP::GPM_CoreRun New()
create a run class
Definition: GPM_CoreRun.h:35
DEFINE_SPTR(GPM_CoreRun)
virtual tBoolean runTutorials() const
run the tutorials
Definition: GPM_CoreRun.cpp:124
abstract base class for most classes.
Definition: CORE_Object.h:30
#define tString
Definition: types.h:36
GPM_CoreRun(void)
create
Definition: GPM_CoreRun.cpp:11
virtual ~GPM_CoreRun(void)
destroy
Definition: GPM_CoreRun.cpp:17
#define tReal
Definition: types.h:18
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106