Yate
Public Member Functions | Static Public Member Functions | Protected Member Functions
SignallingFactory Class Reference

A signalling component factory. More...

#include <yatesig.h>

Inheritance diagram for SignallingFactory:
GenObject

List of all members.

Public Member Functions

 SignallingFactory (bool fallback=false)
virtual ~SignallingFactory ()

Static Public Member Functions

static SignallingComponentbuild (const String &type, const NamedList *name=0)
static void * buildInternal (const String &type, const NamedList *name)

Protected Member Functions

virtual SignallingComponentcreate (const String &type, const NamedList &name)=0

Detailed Description

A signalling component factory.

A factory that constructs various elements by name


Constructor & Destructor Documentation

SignallingFactory ( bool  fallback = false)

Constructor, adds the factory to the global list

Parameters:
fallbackTrue to add this factory at the end of the priority list
virtual ~SignallingFactory ( ) [virtual]

Destructor, removes the factory from list


Member Function Documentation

static SignallingComponent* build ( const String type,
const NamedList name = 0 
) [static]

Builds a component given its name and arbitrary parameters

Parameters:
typeThe type of the component that should be returned
nameName of the requested component and additional parameters
Returns:
Pointer to the created component, NULL on failure
static void* buildInternal ( const String type,
const NamedList name 
) [static]

This method is for internal use only and must not be called directly

Parameters:
typeThe name of the interface that should be returned
nameName of the requested component and additional parameters
Returns:
Raw pointer to the requested interface of the component, NULL on failure
virtual SignallingComponent* create ( const String type,
const NamedList name 
) [protected, pure virtual]

Creates a component given its name and arbitrary parameters

Parameters:
typeThe name of the interface that should be returned
nameName of the requested component and additional parameters
Returns:
Pointer to the created component

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