|
Yate
|
An unidirectional data translator (codec) More...
#include <yatephone.h>
Public Member Functions | |
| virtual | ~TranslatorFactory () |
| virtual void | removed (const TranslatorFactory *factory) |
| virtual DataTranslator * | create (const DataFormat &sFormat, const DataFormat &dFormat)=0 |
| virtual const TranslatorCaps * | getCapabilities () const =0 |
| virtual bool | converts (const DataFormat &sFormat, const DataFormat &dFormat) const |
| virtual unsigned int | length () const |
| virtual bool | intermediate (const FormatInfo *info) const |
| virtual const FormatInfo * | intermediate () const |
| virtual const char * | name () const |
| NamedCounter * | objectsCounter () const |
Public Member Functions inherited from GenObject | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual bool | alive () const |
| virtual void | destruct () |
| virtual const String & | toString () const |
| virtual void * | getObject (const String &name) const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
Protected Member Functions | |
| TranslatorFactory (const char *name=0) | |
Additional Inherited Members | |
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 NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
An unidirectional data translator (codec)
A factory for constructing data translators by format name conversion of data from one type to another
|
inlineexplicitprotected |
Constructor - registers the factory in the global list
| name | Static name of the factory, used for debugging |
References Thread::getCurrentObjCounter(), and DataTranslator::install().
|
virtual |
Destructor - unregisters from the global list
|
virtual |
Check if this factory can build a translator for given data formats
| sFormat | Name of the source format |
| dFormat | Name of the destination format |
|
pure virtual |
Creates a translator given the source and destination format names
| sFormat | Name of the source format (data received from the consumer) |
| dFormat | Name of the destination format (data supplied to the source) |
|
pure virtual |
Get the capabilities table of this translator
|
virtual |
Check if a data format is used as intermediate in a translator chain
| info | Format to check for |
|
virtual |
Get the intermediate format used by a translator chain
|
virtual |
Get the length of the translator chain built by this factory
|
inlinevirtual |
Get the name of this factory, useful for debugging purposes
|
inline |
Retrive the objects counter associated to this factory
|
virtual |
Notification that another factory was removed from the list
| factory | Pointer to the factory that just got removed |
1.8.8