C++ main module for gpm Package  1.0
GPM_ClassFactory.h
Go to the documentation of this file.
1 #ifndef GPM_ClassFactory_H
2 #define GPM_ClassFactory_H
3 
4 #include "CORE_ClassFactory.h"
5 
12 
14 
15  // ATTRIBUTES
16  private:
17  // ASSOCIATIONS
18 
19  SP_OBJECT(GPM_ClassFactory);
20 
21  private:
22 
23 
24 
25  protected:
26 
28  GPM_ClassFactory(void);
29 
32  virtual ~GPM_ClassFactory(void);
33 
34 
35  public:
36 
37  static SP::GPM_ClassFactory New() {
38  SP::GPM_ClassFactory p(new GPM_ClassFactory(),GPM_ClassFactory::Delete());
39  p->setThis(p);
40  return p;
41  };
42 
43 
44 
45 
51  virtual SP::CORE_Object NewInstance(const tString& classname,
52  const SVC::CORE_Object& arguments) const;
53  virtual SP::CORE_Object NewInstance(const tString& classname) const {
54  SVC::CORE_Object args;
55  return NewInstance(classname,args);
56  }
57 
58 };
59 #endif
virtual ~GPM_ClassFactory(void)
destroy an object.
Definition: GPM_ClassFactory.cpp:21
static SP::GPM_ClassFactory New()
Definition: GPM_ClassFactory.h:37
virtual SP::CORE_Object NewInstance(const tString &classname) const
create an instance of a class
Definition: GPM_ClassFactory.h:53
GPM_ClassFactory(void)
create a dynamical system
Definition: GPM_ClassFactory.cpp:15
virtual SP::CORE_Object NewInstance(const tString &classname, const SVC::CORE_Object &arguments) const
create a new instance of class
Definition: GPM_ClassFactory.cpp:27
This class is the class to save GPM classes.
Definition: GPM_ClassFactory.h:13
#define tString
Definition: types.h:36
DEFINE_SPTR(GPM_ClassFactory)
this class describes a class factory to generate classes for User Interface Software ...
Definition: CORE_ClassFactory.h:18
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106