C++ mpi module for stochmagnet_main Package
EXPR_Run.h
1 #ifndef EXPR_Run_H
2 #define EXPR_Run_H
3 
4 #include "CORE_Run.h"
5 
6 
7 
16 class EXPR_Run : public CORE_Run {
17 
18  //attributes
19 private :
20 
21 public:
22  // CONSTRUCTORS
25  EXPR_Run(void) {
26  SetSoftName("math_expr.exe");
27  SetVersion("VERSION");
28  }
29 
30  // DESTRUCTORS
33  virtual ~EXPR_Run(void) {
34  }
35 
36 public:
40  inline static CORE_UniquePointer<EXPR_Run> New() {
41  CORE_UniquePointer<EXPR_Run> p(new EXPR_Run(),EXPR_Run::Delete());
42  return p;
43  };
44 
45 
46  //MEMORY
47  //======
55  virtual tMemSize getMemorySize() const override {
56  return sizeof(*this)+getContentsMemorySize();
57  }
58 
59 
60 protected:
64  virtual tBoolean makeTests(const CORE_OptionsList& options) const override;
65 
66 
67 protected:
71  virtual void createClassFactories(const CORE_OptionsList& options) const override;
72 };
73 
74 
75 #endif
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
This class is an list of options.
Definition: CORE_OptionsList.h:36
This class is a Run class for core package.
Definition: CORE_Run.h:44
static void SetVersion(const tString &version)
set the version
Definition: CORE_Run.h:123
virtual tMemSize getContentsMemorySize() const override
return the memory size in byte
Definition: CORE_Run.h:100
static void SetSoftName(const tString &soft)
set soft name
Definition: CORE_Run.h:109
This class is the runner class for the generic package of the expr module of math package.
Definition: EXPR_Run.h:16
virtual void createClassFactories(const CORE_OptionsList &options) const override
create the class factories as mentioned in options
Definition: EXPR_Run.cpp:7
static CORE_UniquePointer< EXPR_Run > New()
create a run class
Definition: EXPR_Run.h:40
virtual ~EXPR_Run(void)
destroy
Definition: EXPR_Run.h:33
virtual tMemSize getMemorySize() const override
return the memory size of the class
Definition: EXPR_Run.h:55
virtual tBoolean makeTests(const CORE_OptionsList &options) const override
run the tests
Definition: EXPR_Run.cpp:18
EXPR_Run(void)
create
Definition: EXPR_Run.h:25