DataDirector API
Classes | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
ChunkProducerFactory Class Reference

Classes

struct  ChunkProducerFactoryStruct
 

Static Public Member Functions

static ChunkProducerFactoryInstance ()
 
static void RegisterProducer (const std::string &producerName, ProducerCreateFunc func)
 
static ChunkProducerCreateProducer (const std::string &producerName)
 

Protected Member Functions

 ChunkProducerFactory ()
 
 ~ChunkProducerFactory ()
 

Static Protected Attributes

static DynamicPtrArray< ChunkProducerFactoryStruct * > _makerList
 

Constructor & Destructor Documentation

ChunkProducerFactory ( )
protected

Constructor

~ChunkProducerFactory ( )
protected

Destructor

Member Function Documentation

static ChunkProducer* CreateProducer ( const std::string &  producerName)
static
Returns
Returns a new ChunkProducer instance of the type specified or NULL if no producer with that tag is registered
Parameters
producerNameThe type of producer to create
static ChunkProducerFactory& Instance ( )
static

Public interface to the singleton

Returns
Returns a pointer to the singleton instance
static void RegisterProducer ( const std::string &  producerName,
ProducerCreateFunc  func 
)
static

Registers a new producer type with the factory

Parameters
producerNameThe tag name associated with the producer
funcA function that creates a producer of the type specified by producerName

Member Data Documentation

DynamicPtrArray<ChunkProducerFactoryStruct *> _makerList
staticprotected

The list of registered makers


The documentation for this class was generated from the following file: