#include <yatephone.h>
Inheritance diagram for DataSource:

Public Member Functions | |
| DataSource (const char *format="slin") | |
| virtual | ~DataSource () |
| virtual void * | getObject (const String &name) const |
| void | Forward (const DataBlock &data, unsigned long tStamp=invalidStamp()) |
| bool | attach (DataConsumer *consumer, bool override=false) |
| bool | detach (DataConsumer *consumer) |
| void | clear () |
| Mutex * | mutex () |
| DataTranslator * | getTranslator () const |
| void | synchronize (unsigned long tStamp) |
| unsigned long | nextStamp () const |
Protected Attributes | |
| unsigned long | m_nextStamp |
| DataTranslator * | m_translator |
| ObjList | m_consumers |
| Mutex | m_mutex |
Friends | |
| class | DataTranslator |
|
|
Source constructor
|
|
|
Source's destructor - detaches all consumers |
|
||||||||||||
|
Attach a data consumer
|
|
|
Detach all data consumers |
|
|
Detach a data consumer
|
|
||||||||||||
|
Forwards the data to its consumers
|
|
|
Get a pointer to a derived class given that class name
Reimplemented from GenObject. |
|
|
Get the master translator object if this source is part of a translator
|
|
|
Get the mutex that serializes access to this data source
|
|
|
Get the next expected position in the data stream
|
|
|
Synchronize the source and attached consumers with another timestamp
|
1.4.4