EbmlSInteger Class Reference

Handle all operations on a signed integer EBML element. More...

#include <EbmlSInteger.h>

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

List of all members.

Public Member Functions

 EbmlSInteger (int64 DefaultValue)
 EbmlSInteger (const EbmlSInteger &ElementToClone)
EbmlSIntegeroperator= (int64 NewValue)
virtual void SetDefaultSize (uint64 nDefaultSize=DEFAULT_INT_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 int8 ()
 operator int16 ()
 operator int32 ()
 operator int64 ()
void SetDefaultValue (int64 aValue)
int64 DefaultVal () const
bool IsDefaultValue () const

Protected Attributes

int64 Value
int64 DefaultValue
 The actual value of the element.

Detailed Description

Handle all operations on a signed integer EBML element.


Member Function Documentation

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

Implements EbmlElement.

virtual void EbmlSInteger::SetDefaultSize ( uint64  nDefaultSize = DEFAULT_INT_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