Kigs Framework
Doc version 0.8
Open source multi purpose Rapid Application Development framework
|
#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 | |
Utility class to store "createInstance" method for each class of a module.
createMethod InstanceFactory::ModuleAssociation::GetCreateMethod | ( | const KigsID & | classname | ) | const |
get the create method for the given class name
classname | : class to look for |
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
method | : create method of the class |
className | : class to register |