Handle all operations on a float EBML element. More...
#include <EbmlFloat.h>
Public Types | |
enum | Precision { FLOAT_32, FLOAT_64 } |
Public Member Functions | |
EbmlFloat (const Precision prec=FLOAT_32) | |
EbmlFloat (const double DefaultValue, const Precision prec=FLOAT_32) | |
EbmlFloat (const EbmlFloat &ElementToClone) | |
virtual bool | ValidateSize () const |
filepos_t | RenderData (IOCallback &output, bool bForceRender, bool bWithDefault=false) |
filepos_t | ReadData (IOCallback &input, ScopeMode ReadFully=SCOPE_ALL_DATA) |
filepos_t | UpdateSize (bool bWithDefault=false, bool bForceRender=false) |
void | SetPrecision (const EbmlFloat::Precision prec=FLOAT_32) |
EbmlFloat & | operator= (const double NewValue) |
virtual bool | IsSmallerThan (const EbmlElement *Cmp) const |
default comparison for elements that can't be compared | |
operator const float () const | |
operator const double () const | |
void | SetDefaultValue (double) |
const double | DefaultVal () const |
bool | IsDefaultValue () const |
Protected Attributes | |
double | Value |
double | DefaultValue |
The actual value of the element. |
Handle all operations on a float EBML element.
filepos_t EbmlFloat::ReadData | ( | IOCallback & | input, | |
ScopeMode | ReadFully = SCOPE_ALL_DATA | |||
) | [virtual] |
Implements EbmlElement.
filepos_t EbmlFloat::RenderData | ( | IOCallback & | output, | |
bool | bForceRender, | |||
bool | bWithDefault = false | |||
) | [virtual] |
handle exception on errors
handle 10 bits precision
Implements EbmlElement.