EbmlUInteger Class Reference

Handle all operations on an unsigned integer EBML element. More...

#include <EbmlUInteger.h>

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

List of all members.

Public Member Functions

 EbmlUInteger (uint64 DefaultValue)
 EbmlUInteger (const EbmlUInteger &ElementToClone)
EbmlUIntegeroperator= (uint64 NewValue)
virtual void SetDefaultSize (uint64 nDefaultSize=DEFAULT_UINT_SIZE)
virtual bool ValidateSize () const
filepos_t RenderData (IOCallback &output, bool bForceRender, bool bWithDefault=false)
filepos_t ReadData (IOCallback &input, ScopeMode ReadFully=SCOPE_ALL_DATA)
 return the size of the data stored in the element, on reading
filepos_t UpdateSize (bool bWithDefault=false, bool bForceRender=false)
virtual bool IsSmallerThan (const EbmlElement *Cmp) const
 default comparison for elements that can't be compared
 operator uint8 () const
 operator uint16 () const
 operator uint32 () const
 operator uint64 () const
void SetDefaultValue (uint64)
uint64 DefaultVal () const
bool IsDefaultValue () const

Protected Attributes

uint64 Value
uint64 DefaultValue
 The actual value of the element.

Detailed Description

Handle all operations on an unsigned integer EBML element.


Member Function Documentation

filepos_t EbmlUInteger::RenderData ( IOCallback output,
bool  bForceRender,
bool  bWithDefault = false 
) [virtual]
Todo:
handle exception on errors

Implements EbmlElement.

virtual void EbmlUInteger::SetDefaultSize ( uint64  nDefaultSize = DEFAULT_UINT_SIZE  )  [inline, virtual]

Set the default size of the integer (usually 1,2,4 or 8)

Reimplemented from 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