Kigs Framework  Doc version 0.8
Open source multi purpose Rapid Application Development framework
Public Member Functions | Public Attributes | List of all members
InstanceFactory::ModuleAssociation Class Reference

#include <InstanceFactory.h>

Public Member Functions

void RegisterClass (createMethod method, const KigsID &className)
 register the create method for the given class name More...
 
createMethod GetCreateMethod (const KigsID &classname) const
 get the create method for the given class name More...
 

Public Attributes

kigs::unordered_map< KigsID, createMethod > mClassMap
 registered class list for this module
 

Detailed Description

Utility class to store "createInstance" method for each class of a module.

Member Function Documentation

◆ GetCreateMethod()

createMethod InstanceFactory::ModuleAssociation::GetCreateMethod ( const KigsID &  classname) const

get the create method for the given class name

Parameters
classname: class to look for
Returns
the create method of the class

◆ RegisterClass()

void InstanceFactory::ModuleAssociation::RegisterClass ( createMethod  method,
const KigsID &  className 
)

register the create method for the given class name

utility method : add a class (in fact a pointer to the create method) to to class map for this module

Parameters
method: create method of the class
className: class to register

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