Handle all operations related to an EBML date. More...
#include <EbmlDate.h>
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 |
Handle all operations related to an EBML date.
int32 EbmlDate::GetEpochDate | ( | ) | const [inline] |
get the date with a UNIX/C/EPOCH form
void EbmlDate::SetEpochDate | ( | int32 | NewDate | ) | [inline] |
set the date with a UNIX/C/EPOCH form
NewDate | UNIX/C date in UTC (no timezone) |
filepos_t EbmlDate::UpdateSize | ( | bool | bWithDefault = false , |
|
bool | bForceRender = false | |||
) | [inline, virtual] |
Implements EbmlElement.