#include <AsyncFactory.h>
|
static T * | createNamedObject (const std::string &name, Args... args) |
| Create an instance of the named class.
|
|
static std::string | validFactories (void) |
| Get a list of valid class names.
|
|
|
virtual T * | createObject (Args... args)=0 |
| Create and return a new instance of an object.
|
|
template<class T, typename... Args>
class Async::Factory< T, Args >
- Examples
- AsyncFactory_demo.cpp.
Definition at line 148 of file AsyncFactory.h.
◆ Factory() [1/2]
template<class T , typename... Args>
Constructor.
- Parameters
-
name | The name of the specific object factory being created |
Definition at line 191 of file AsyncFactory.h.
◆ Factory() [2/2]
template<class T , typename... Args>
Don't allow copy construction.
◆ ~Factory()
template<class T , typename... Args>
◆ createNamedObject()
template<class T , typename... Args>
static T * Async::Factory< T, Args >::createNamedObject |
( |
const std::string & | name, |
|
|
Args... | args ) |
|
inlinestatic |
Create an instance of the named class.
- Parameters
-
name | The name of the class to create an instance of |
args | Arguments to pass to constructor, if any |
- Returns
- Returns a newly constucted object or 0 on failure
Definition at line 157 of file AsyncFactory.h.
◆ createObject()
template<class T , typename... Args>
◆ operator=()
template<class T , typename... Args>
◆ validFactories()
template<class T , typename... Args>
Get a list of valid class names.
- Returns
- Return a string containing a list of valid class names
This function is mostly useful for printing a message informing about which classes are available.
Definition at line 176 of file AsyncFactory.h.
The documentation for this class was generated from the following file: