#include <yatephone.h>
Public Member Functions | |
DataConsumer (const char *format="slin") | |
virtual void | destroyed () |
virtual void * | getObject (const String &name) const |
virtual unsigned long | Consume (const DataBlock &data, unsigned long tStamp, unsigned long flags)=0 |
DataSource * | getConnSource () const |
DataSource * | getOverSource () const |
virtual DataSource * | getTransSource () const |
Protected Member Functions | |
virtual bool | synchronize (DataSource *source) |
Friends | |
class | DataSource |
DataConsumer | ( | const char * | format = "slin" |
) | [inline, explicit] |
Consumer constructor
format | Name of the data format, default "slin" (Signed Linear) |
virtual void destroyed | ( | ) | [virtual] |
Destruct notification - complains loudly if still attached to a source
Reimplemented from RefObject.
virtual void* getObject | ( | const String & | name | ) | const [virtual] |
Get a pointer to a derived class given that class name
name | Name of the class we are asking for |
Reimplemented from GenObject.
Reimplemented in DataTranslator.
virtual unsigned long Consume | ( | const DataBlock & | data, | |
unsigned long | tStamp, | |||
unsigned long | flags | |||
) | [pure virtual] |
Consumes the data sent to it from a source
data | The raw data block to process | |
tStamp | Timestamp of data - typically samples | |
flags | Indicator flags associated with the data block |
DataSource* getConnSource | ( | ) | const [inline] |
Get the data source of this object if it's connected
DataSource* getOverSource | ( | ) | const [inline] |
Get the override data source of this object if it's connected
virtual DataSource* getTransSource | ( | ) | const [inline, virtual] |
Get the data source of a translator object
Reimplemented in DataTranslator.
virtual bool synchronize | ( | DataSource * | source | ) | [protected, virtual] |
Synchronize the consumer with a source
source | Data source to copy the timestamp from |
Reimplemented in DataTranslator.