EbmlFloat Class Reference

Handle all operations on a float EBML element. More...

#include <EbmlFloat.h>

Inheritance diagram for EbmlFloat:
Inheritance graph
[legend]
Collaboration diagram for EbmlFloat:
Collaboration graph
[legend]

List of all members.

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)
EbmlFloatoperator= (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.

Detailed Description

Handle all operations on a float EBML element.


Member Function Documentation

filepos_t EbmlFloat::ReadData ( IOCallback input,
ScopeMode  ReadFully = SCOPE_ALL_DATA 
) [virtual]
Todo:
remove the hack for possible endianess pb (test on little & big endian)

Implements EbmlElement.

filepos_t EbmlFloat::RenderData ( IOCallback output,
bool  bForceRender,
bool  bWithDefault = false 
) [virtual]
Todo:

handle exception on errors

handle 10 bits precision

Implements EbmlElement.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator
Generated on Tue Jun 8 11:06:04 2010 for libebml by  doxygen 1.6.3