C++ main module for gpm Package  1.0
GPMG_ClassFactory.h
Go to the documentation of this file.
1 #ifndef GPMG_ClassFactory_H
2 #define GPMG_ClassFactory_H
3 
4 
5 #include "GUI2D_ClassFactory.h"
6 
13 class GPMG_ClassFactory : public GUI2D_ClassFactory { // class
14  SP_OBJECT(GPMG_ClassFactory);
15 
16  // ATTRIBUTES
17 
18 private:
19 
20 
21  // ASSOCIATIONS
22 
23 
24  // METHODS
25 
26 
27 protected:
28  // CONSTRUCTORS
32 
33 
34 
35 
36  // DESTRUCTORS
40  virtual ~GPMG_ClassFactory(void);
41 
42 
43 
44 
45 
46 public:
47  // NEW
50  inline static SP::GPMG_ClassFactory New() {
51  SP::GPMG_ClassFactory p(new GPMG_ClassFactory(),
52  GPMG_ClassFactory::Delete());
53  p->setThis(p);
54  return p;
55  };
56 
57  // SET
58 
59  // GET
60 
61  // OTHERS
64  virtual SP::CORE_Object NewInstance(const tString& name,
65  const SVC::CORE_Object& newParameters) const;
66 
67 
68 
69 };
70 #endif
DEFINE_SPTR(GPMG_ClassFactory)
virtual SP::CORE_Object NewInstance(const tString &name, const SVC::CORE_Object &newParameters) const
create an instance of a class
Definition: GPMG_ClassFactory.cpp:28
static SP::GPMG_ClassFactory New()
create a class factory
Definition: GPMG_ClassFactory.h:50
virtual ~GPMG_ClassFactory(void)
destroy a GPMG_ClassFactory
Definition: GPMG_ClassFactory.cpp:24
GPMG_ClassFactory()
build a GPMG_ClassFactory
Definition: GPMG_ClassFactory.cpp:19
#define tString
Definition: types.h:36
this class describes a class factory to generate GPMG classes
Definition: GPMG_ClassFactory.h:13