|
Async 1.8.0
|
Convenience struct to make specific factory instantiation easier. More...
#include <AsyncAudioContainer.h>
Public Member Functions | |
| AudioContainerSpecificFactory (void) | |
Public Member Functions inherited from Async::SpecificFactory< AudioContainer, T > | |
| SpecificFactory (const std::string &name) | |
| Constructor. | |
Public Member Functions inherited from Async::Factory< AudioContainer, Args... > | |
| Factory (const std::string &name) | |
| Constructor. | |
| Factory (const Factory< AudioContainer, Args... > &)=delete | |
| Don't allow copy construction. | |
| Factory & | operator= (const Factory< AudioContainer, Args... > &)=delete |
| Don't allow assignment. | |
| virtual | ~Factory (void) |
| Destructor. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Async::Factory< AudioContainer, Args... > | |
| static AudioContainer * | 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. | |
Protected Member Functions inherited from Async::SpecificFactory< AudioContainer, T > | |
| T * | createObject (Args... args) |
| Create and return a new instance of an object. | |
Protected Member Functions inherited from Async::Factory< AudioContainer, Args... > | |
Convenience struct to make specific factory instantiation easier.
This struct make it easier to create a specific factory for a AudioContainer class. The constant OBJNAME must be declared in the class that the specific factory is for. To instantiate a specific factory is then as easy as:
static AudioContainerSpecificFactory<AudioContainerWav> wav;
Definition at line 243 of file AsyncAudioContainer.h.
|
inline |
Definition at line 246 of file AsyncAudioContainer.h.