|
Yate
|
A Data format. More...
#include <yatephone.h>
Public Member Functions | |
| DataFormat () | |
| DataFormat (const char *value) | |
| DataFormat (const DataFormat &value) | |
| DataFormat (const String &value) | |
| DataFormat (const NamedList &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 () |
A Data format.
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 NamedList & | value | ) | [inline] |
Constructor from NamedList reference
| value | Initial value of the format and parameters |
| DataFormat | ( | const String * | value | ) | [inline] |
Constructor from String pointer.
| value | Initial value of the format |
| DataFormat | ( | const FormatInfo * | format | ) | [inline, explicit] |
Constructor from format information
| format | Pointer to existing FormatInfo |
| virtual void changed | ( | ) | [protected, virtual] |
Called whenever the value changed (except in constructors).
Reimplemented from String.
| int frameSize | ( | int | defValue = 0 | ) | const [inline] |
Retrieve the frame size
| defValue | Default value to return if format is unknown |
| int frameTime | ( | int | defValue = 0 | ) | const [inline] |
Retrieve the frame time
| defValue | Default value to return if format is unknown |
| const FormatInfo* getInfo | ( | ) | const |
Retrieve a pointer to the format information
Referenced by DataFormat::operator=().
| int numChannels | ( | int | defValue = 1 | ) | const [inline] |
Retrieve the number of channels
| defValue | Default value to return if format is unknown |
| DataFormat& operator= | ( | const DataFormat & | value | ) | [inline] |
Assignment operator.
References DataFormat::getInfo(), and NamedList::operator=().
| int sampleRate | ( | int | defValue = 0 | ) | const [inline] |
Retrieve the sample rate
| defValue | Default value to return if format is unknown |
1.7.6.1