Classes | Public Member Functions | Private Attributes
mvsim::ClassFactory< CLASS, ARG1, ARG2 > Class Template Reference

#include <ClassFactory.h>

List of all members.

Classes

struct  TClassData

Public Member Functions

CLASS * create (const std::string &class_name, ARG1 a1) const
CLASS * create (const std::string &class_name, ARG1 a1, ARG2 a2) const
void do_register (const std::string &class_name, const TClassData &data)

Private Attributes

std::map< std::string, TClassDatam_classes

Detailed Description

template<class CLASS, typename ARG1 = void, typename ARG2 = int>
class mvsim::ClassFactory< CLASS, ARG1, ARG2 >

Templatized-class factory for mvsim objects. Does not explicitly handle multi-threading.

Definition at line 21 of file ClassFactory.h.


Member Function Documentation

template<class CLASS , typename ARG1 = void, typename ARG2 = int>
CLASS* mvsim::ClassFactory< CLASS, ARG1, ARG2 >::create ( const std::string &  class_name,
ARG1  a1 
) const [inline]

Definition at line 36 of file ClassFactory.h.

template<class CLASS , typename ARG1 = void, typename ARG2 = int>
CLASS* mvsim::ClassFactory< CLASS, ARG1, ARG2 >::create ( const std::string &  class_name,
ARG1  a1,
ARG2  a2 
) const [inline]

Definition at line 51 of file ClassFactory.h.

template<class CLASS , typename ARG1 = void, typename ARG2 = int>
void mvsim::ClassFactory< CLASS, ARG1, ARG2 >::do_register ( const std::string &  class_name,
const TClassData data 
) [inline]

Definition at line 31 of file ClassFactory.h.


Member Data Documentation

template<class CLASS , typename ARG1 = void, typename ARG2 = int>
std::map<std::string, TClassData> mvsim::ClassFactory< CLASS, ARG1, ARG2 >::m_classes [private]

Definition at line 68 of file ClassFactory.h.


The documentation for this class was generated from the following file:


mvsim
Author(s):
autogenerated on Thu Sep 7 2017 09:27:49