EbmlDate Class Reference

Handle all operations related to an EBML date. More...

#include <EbmlDate.h>

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

List of all members.

Public Member Functions

 EbmlDate (const EbmlDate &ElementToClone)
void SetEpochDate (int32 NewDate)
 set the date with a UNIX/C/EPOCH form
int32 GetEpochDate () const
 get the date with a UNIX/C/EPOCH form
virtual bool ValidateSize () const
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
filepos_t ReadData (IOCallback &input, ScopeMode ReadFully=SCOPE_ALL_DATA)
 return the size of the data stored in the element, on reading
bool IsDefaultValue () const

Protected Member Functions

filepos_t RenderData (IOCallback &output, bool bForceRender, bool bWithDefault=false)
 prepare the data before writing them (in case it's not already done by default)

Protected Attributes

int64 myDate
 internal format of the date

Static Protected Attributes

static const uint64 UnixEpochDelay = 978307200

Detailed Description

Handle all operations related to an EBML date.


Member Function Documentation

int32 EbmlDate::GetEpochDate (  )  const [inline]

get the date with a UNIX/C/EPOCH form

Note:
the date is in UTC (no timezone)
void EbmlDate::SetEpochDate ( int32  NewDate  )  [inline]

set the date with a UNIX/C/EPOCH form

Parameters:
NewDate UNIX/C date in UTC (no timezone)
filepos_t EbmlDate::UpdateSize ( bool  bWithDefault = false,
bool  bForceRender = false 
) [inline, virtual]
Note:
no Default date handled

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