#include <yatephone.h>
Inheritance diagram for DataFormat:
Public Member Functions | |
DataFormat () | |
DataFormat (const char *value) | |
DataFormat (const DataFormat &value) | |
DataFormat (const String &value) | |
DataFormat (const String *value) | |
DataFormat (const FormatInfo *format) | |
DataFormat & | operator= (const DataFormat &value) |
const FormatInfo * | getInfo () const |
int | frameSize (int defValue=0) const |
int | frameTime (int defValue=0) const |
int | sampleRate (int defValue=0) const |
int | numChannels (int defValue=1) const |
Protected Member Functions | |
virtual void | changed () |
An extension of a String that can parse data formats
DataFormat | ( | ) | [inline] |
Creates a new, empty format string.
DataFormat | ( | const char * | value | ) | [inline] |
Creates a new initialized format.
value | Initial value of the format |
DataFormat | ( | const DataFormat & | value | ) | [inline] |
Copy constructor.
value | Initial value of the format |
DataFormat | ( | const String & | value | ) | [inline] |
Constructor from String reference
value | Initial value of the format |
DataFormat | ( | const String * | value | ) | [inline] |
Constructor from String pointer.
value | Initial value of the format |
DataFormat | ( | const FormatInfo * | format | ) | [inline] |
Constructor from format information
format | Pointer to existing FormatInfo |
DataFormat& operator= | ( | const DataFormat & | value | ) | [inline] |
Assignment operator.
const FormatInfo* getInfo | ( | ) | const |
Retrive a pointer to the format information
int frameSize | ( | int | defValue = 0 |
) | const [inline] |
Retrive the frame size
defValue | Default value to return if format is unknown |
int frameTime | ( | int | defValue = 0 |
) | const [inline] |
Retrive the frame time
defValue | Default value to return if format is unknown |
int sampleRate | ( | int | defValue = 0 |
) | const [inline] |
Retrive the sample rate
defValue | Default value to return if format is unknown |
int numChannels | ( | int | defValue = 1 |
) | const [inline] |
Retrive the number of channels
defValue | Default value to return if format is unknown |
virtual void changed | ( | ) | [protected, virtual] |
Called whenever the value changed (except in constructors).
Reimplemented from String.