Yate
SignallingFactory Class Referenceabstract

A signalling component factory. More...

#include <yatesig.h>

Inheritance diagram for SignallingFactory:
GenObject

Public Member Functions

 SignallingFactory (bool fallback=false)
 
virtual ~SignallingFactory ()
 
- Public Member Functions inherited from GenObject
 GenObject ()
 
virtual ~GenObject ()
 
virtual bool alive () const
 
virtual void destruct ()
 
virtual const StringtoString () const
 
virtual const StringtraceId () const
 
virtual void * getObject (const String &name) const
 
NamedCountergetObjCounter () const
 
NamedCountersetObjCounter (NamedCounter *counter)
 

Static Public Member Functions

static SignallingComponentbuild (const String &type, NamedList *name=0)
 
static void * buildInternal (const String &type, NamedList *name)
 
- Static Public Member Functions inherited from GenObject
static void * getObject (const String &name, const GenObject *obj)
 
static bool getObjCounting ()
 
static void setObjCounting (bool enable)
 
static NamedCountergetObjCounter (const String &name, bool create=true)
 
static ObjListgetObjCounters ()
 

Protected Member Functions

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

Detailed Description

A signalling component factory.

A factory that constructs various elements by name

Constructor & Destructor Documentation

◆ SignallingFactory()

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

◆ ~SignallingFactory()

virtual ~SignallingFactory ( )
virtual

Destructor, removes the factory from list

Member Function Documentation

◆ build()

static SignallingComponent * build ( const String & type,
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

◆ buildInternal()

static void * buildInternal ( const String & type,
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

◆ create()

virtual SignallingComponent * create ( const String & type,
NamedList & name )
protectedpure 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: