C++ main module for emicrom Package  1.0
EMMG_ClassFactory.h
Go to the documentation of this file.
1 #ifndef EMMG_ClassFactory_H
2 #define EMMG_ClassFactory_H
3 
4 
5 #include "CORE_ClassFactory.h"
6 
7 
14 
15 class EMMG_ClassFactory : public CORE_ClassFactory{ // class
16 
17  // THIS Shared pointer definition
19 
20 
21  // ASSOCIATION
22 
23 
24  // ATTRIBUTES
25 
26 private:
27 
28 
29  // ASSOCIATIONS
30 
31 
32  // METHODS
33 
34 
35 protected:
36  // CONSTRUCTORS
40 
41 
42 
43 
44  // DESTRUCTORS
48  virtual ~EMMG_ClassFactory(void);
49 
50 
51 
52 
53 
54 public:
55  // NEW
58  inline static SP::EMMG_ClassFactory New() {
59  SP::EMMG_ClassFactory p(new EMMG_ClassFactory(),
61  p->setThis(p);
62  return p;
63  }
64 
65  // SET
66 
67 
68 
69 
70  // GET
71 
72 
73  // OTHERS
80  virtual SP::CORE_Object NewInstance(const tString& name,
81  const SVC::CORE_Object& newParameters) const;
82 
88  virtual SP::CORE_Object NewInstance(const tString& name) const {
89  SVC::CORE_Object args;
90  return NewInstance(name,args);
91  };
92 
93 
94 
95 };
96 
97 #endif
EMMG_ClassFactory()
build a EMM_ClassFactory
Definition: EMMG_ClassFactory.cpp:41
virtual SP::CORE_Object NewInstance(const tString &name, const SVC::CORE_Object &newParameters) const
create an instance of a class
Definition: EMMG_ClassFactory.cpp:48
static SP::EMMG_ClassFactory New()
create a shared pointer to the class factory
Definition: EMMG_ClassFactory.h:58
DEFINE_SPTR(EMMG_ClassFactory)
virtual SP::CORE_Object NewInstance(const tString &name) const
create an instance of a class
Definition: EMMG_ClassFactory.h:88
this class describes a class factory to generate generic classes for the core module of the microm Pa...
Definition: EMMG_ClassFactory.h:15
#define tString
Definition: types.h:135
this class describes a class factory to generate classes for User Interface Software ...
Definition: CORE_ClassFactory.h:18
SP_OBJECT(EMMG_ClassFactory)
virtual ~EMMG_ClassFactory(void)
destroy a EMM_ClassFactory
Definition: EMMG_ClassFactory.cpp:46
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141