Yate
|
#include <yatephone.h>
Public Types | |
enum | DataFlags { DataStart = 0x0001, DataEnd = 0x0002, DataMark = 0x0004, DataSilent = 0x0008, DataMissed = 0x0010, DataError = 0x0020, DataPrivate = 0x0100 } |
Public Member Functions | |
DataNode (const char *format=0) | |
virtual int | costFormat (const DataFormat &format) |
virtual bool | setFormat (const DataFormat &format) |
const DataFormat & | getFormat () const |
unsigned long | timeStamp () const |
virtual bool | valid () const |
virtual bool | control (NamedList ¶ms) |
Static Public Member Functions | |
static unsigned long | invalidStamp () |
Protected Member Functions | |
virtual void | attached (bool added) |
Protected Attributes | |
DataFormat | m_format |
unsigned long | m_timestamp |
Friends | |
class | DataEndpoint |
A generic data handling object
enum DataFlags |
Flags associated with the DataBlocks forwarded between nodes
DataNode | ( | const char * | format = 0 | ) | [inline, explicit] |
Construct a DataNode
format | Description of the data format, default none |
virtual void attached | ( | bool | added | ) | [inline, protected, virtual] |
Owner attach and detach notification. This method is called with DataEndpoint::commonMutex() held
added | True if a new owner was added, false if it was removed |
Modify node parameters
params | The list of parameters to change |
virtual int costFormat | ( | const DataFormat & | format | ) | [inline, virtual] |
Get the computing cost of converting the data to the format asked
format | Name of the format to check for |
const DataFormat& getFormat | ( | ) | const [inline] |
Get the description of the format currently in use
static unsigned long invalidStamp | ( | ) | [inline, static] |
Get the internal representation of an invalid or unknown timestamp
virtual bool setFormat | ( | const DataFormat & | format | ) | [inline, virtual] |
Change the format used to transfer data
format | Name of the format to set for data |
unsigned long timeStamp | ( | ) | const [inline] |
Get the current position in the data stream
virtual bool valid | ( | ) | const [inline, virtual] |
Check if this data node is still valid
Reimplemented in DataTranslator, and DataSource.