|
wavelength 1.0.0
|
Registry of the classes derived from a base that a stream can rebuild, by identifier. More...
#include <factory.h>
Classes | |
| class | FactoryUnitBase |
| Builder of one class. More... | |
| class | FactoryUnit |
| Builder of the class T. More... | |
Static Public Member Functions | |
| static std::map< int, FactoryUnitBase * > & | GetUnits () |
| Report the builders by identifier, constructing the registry on first use. | |
| template<typename T> | |
| static void | Register (int nId) |
| Register a builder of the class T under an identifier. | |
Registry of the classes derived from a base that a stream can rebuild, by identifier.
The RTTI includes the template with the argument Command, and the nested FactoryUnitBase and FactoryUnit. Every member is inline.
| Base | The base of the classes. |
|
inlinestatic |
Report the builders by identifier, constructing the registry on first use.
The registry is destroyed at exit.
Register a builder of the class T under an identifier.
| T | The class. |
| nId | The identifier. |