Async 1.8.0
|
Convenience struct to make specific factory instantiation easier. More...
#include <AsyncAudioContainer.h>
Public Member Functions | |
AudioContainerSpecificFactory (void) | |
![]() | |
SpecificFactory (const std::string &name) | |
Constructor. | |
![]() | |
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 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. | |
![]() | |
T * | createObject (Args... args) |
Create and return a new instance of an object. | |
![]() |
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.