$darkmode
Go to the source code of this file.
Classes | |
| class | cloe::Controller |
| class | cloe::ControllerFactory |
Macros | |
| #define | DEFINE_CONTROLLER_FACTORY(xFactoryType, xConfigType, xName, xDescription) |
| #define | DEFINE_CONTROLLER_FACTORY_MAKE(xFactoryType, xControllerType) |
This file provides the base classes for controller models.
| #define DEFINE_CONTROLLER_FACTORY | ( | xFactoryType, | |
| xConfigType, | |||
| xName, | |||
| xDescription | |||
| ) |
This macro defines a ControllerFactory named xFactoryType and with the configuration xConfigType. It should be used within the desired namespace.
The make method needs to be implemented:
The DEFINE_CONTROLLER_FACTORY_MAKE macro can also be used to use the default implementation.
| #define DEFINE_CONTROLLER_FACTORY_MAKE | ( | xFactoryType, | |
| xControllerType | |||
| ) |
This macro defines the xFactoryType::make method.
For this to work, the xControllerType must have a constructor with the following signature (see DEFINE_CONTROLLER_FACTORY macro):
xControllerType(const std::string&, const xConfigType&)