![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <StaticFactory.hpp>
Public Types | |
| typedef std::map< std::string, CREATOR * > | CreateMap |
| Internal storage definition for name to creator mapping. | |
| typedef void(* | RegisterFunction )(std::string name, CREATOR *creator) |
Static Public Member Functions | |
| static CREATOR * | creator (std::string name) |
| Lookup and return the creator with the given name. | |
| static CreateMap * | getMap () |
| Return the internal mapping. | |
| static bool | knows (std::string name) |
| Check if a creator with the given name has registered. | |
| static void | reg (std::string name, CREATOR *creator) |
| Register a creator. | |
Definition at line 138 of file StaticFactory.hpp.
| typedef std::map<std::string, CREATOR*> wns::StaticFactory< CREATOR >::CreateMap |
Useful for reflection.
Definition at line 169 of file StaticFactory.hpp.
| typedef void(* wns::StaticFactory< CREATOR >::RegisterFunction)(std::string name, CREATOR *creator) |
| CREATOR * wns::StaticFactory< CREATOR >::creator | ( | std::string | name | ) | [inline, static] |
If no creator with the given name has been registered, throw an exception of type FIXME. Never return a NULL-pointer.
Definition at line 192 of file StaticFactory.hpp.
| StaticFactory< CREATOR >::CreateMap * wns::StaticFactory< CREATOR >::getMap | ( | ) | [inline, static] |
Useful for reflection.
Definition at line 182 of file StaticFactory.hpp.
| bool wns::StaticFactory< CREATOR >::knows | ( | std::string | name | ) | [inline, static] |
Definition at line 228 of file StaticFactory.hpp.
| void wns::StaticFactory< CREATOR >::reg | ( | std::string | name, | |
| CREATOR * | creator | |||
| ) | [inline, static] |
In most cases this method will not be used directly. StaticFactoryRegister instances use this method to register creators.
Definition at line 213 of file StaticFactory.hpp.
1.5.5