Factory class to create FlowDevice objects.
More...
#include <FlowDeviceFactory.h>
|
virtual void | deleteFactory () |
| Virtual abstract function that deletes the factory. More...
|
|
virtual FlowDevice * | newFlowDevice (const std::string &flowDeviceType) |
| Create a new flow device by type name. More...
|
|
FlowDevice * | create (const std::string &name, Args... args) |
| Create an object using the object construction function corresponding to "name" and the provided constructor arguments. More...
|
|
void | reg (const std::string &name, std::function< FlowDevice *(Args...)> f) |
| Register a new object construction function. More...
|
|
void | addAlias (const std::string &original, const std::string &alias) |
| Add an alias for an existing registered type. More...
|
|
std::string | canonicalize (const std::string &name) |
| Get the canonical name registered for a type. More...
|
|
bool | exists (const std::string &name) const |
| Returns true if name is registered with this factory. More...
|
|
virtual | ~FactoryBase () |
| destructor More...
|
|
Factory class to create FlowDevice objects.
This class is mainly used via the newFlowDevice() function, for example:
virtual FlowDevice * newFlowDevice(const std::string &flowDeviceType)
Create a new flow device by type name.
Definition at line 24 of file FlowDeviceFactory.h.
◆ FlowDeviceFactory()
◆ factory()
◆ deleteFactory()
virtual void deleteFactory |
( |
| ) |
|
|
inlinevirtual |
Virtual abstract function that deletes the factory.
This must be properly defined in child objects.
Implements FactoryBase.
Definition at line 35 of file FlowDeviceFactory.h.
◆ newFlowDevice()
FlowDevice * newFlowDevice |
( |
const std::string & |
flowDeviceType | ) |
|
|
virtual |
◆ s_factory
◆ flowDevice_mutex
std::mutex flowDevice_mutex |
|
staticprivate |
The documentation for this class was generated from the following files: