Classes | Namespaces | Macros
ClassFactory.h File Reference
#include <mvsim/basic_types.h>
#include <map>
#include <memory>
#include <stdexcept>
#include <string>
Include dependency graph for ClassFactory.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mvsim::ClassFactory< CLASS, ARG1, ARG2 >
 
struct  mvsim::ClassFactory< CLASS, ARG1, ARG2 >::TClassData
 

Namespaces

 mvsim
 

Macros

#define DECLARES_REGISTER_CLASS1(CLASS_NAME, BASE_CLASS, ARG1)
 
#define DECLARES_REGISTER_CLASS2(CLASS_NAME, BASE_CLASS, ARG1, ARG2)
 
#define REGISTER_CLASS1(FACTORY_TYPE, FACTORY_OBJ, TEXTUAL_NAME, CLASS_NAME)
 
#define REGISTER_CLASS2(FACTORY_TYPE, FACTORY_OBJ, TEXTUAL_NAME, CLASS_NAME)
 

Macro Definition Documentation

#define DECLARES_REGISTER_CLASS1 (   CLASS_NAME,
  BASE_CLASS,
  ARG1 
)
Value:
public: \
static BASE_CLASS* Create(ARG1 a1) { return new CLASS_NAME(a1); }

Definition at line 74 of file ClassFactory.h.

#define DECLARES_REGISTER_CLASS2 (   CLASS_NAME,
  BASE_CLASS,
  ARG1,
  ARG2 
)
Value:
public: \
static BASE_CLASS* Create(ARG1 a1, ARG2 a2) \
{ \
return new CLASS_NAME(a1, a2); \
}

Definition at line 77 of file ClassFactory.h.

#define REGISTER_CLASS1 (   FACTORY_TYPE,
  FACTORY_OBJ,
  TEXTUAL_NAME,
  CLASS_NAME 
)
Value:
{ \
FACTORY_TYPE::TClassData data; \
data.ptr_factory1 = &CLASS_NAME::Create; \
FACTORY_OBJ.do_register(TEXTUAL_NAME, data); \
}
GLint GLenum GLsizei GLint GLsizei const GLvoid * data

Definition at line 84 of file ClassFactory.h.

#define REGISTER_CLASS2 (   FACTORY_TYPE,
  FACTORY_OBJ,
  TEXTUAL_NAME,
  CLASS_NAME 
)
Value:
{ \
FACTORY_TYPE::TClassData data; \
data.ptr_factory2 = &CLASS_NAME::Create; \
FACTORY_OBJ.do_register(TEXTUAL_NAME, data); \
}
GLint GLenum GLsizei GLint GLsizei const GLvoid * data

Definition at line 91 of file ClassFactory.h.



mvsim
Author(s):
autogenerated on Fri May 7 2021 03:05:51