MDF Lib 2.2
Interface against MDF 3/4 files
Loading...
Searching...
No Matches
mdf::IMdfTimestamp Class Referenceabstract

Interface for MDF timestamp handling.

#include <imdftimestamp.h>

Public Member Functions

virtual void SetTime (uint64_t time)=0
 Set the time in nanoseconds.
 
virtual void SetTime (ITimestamp &timestamp)=0
 Set the time using an ITimestamp object.
 
virtual uint64_t GetTimeNs () const =0
 Get the time in nanoseconds.
 
virtual uint16_t GetTzOffsetMin () const =0
 Get the timezone offset in minutes.
 
virtual uint16_t GetDstOffsetMin () const =0
 Get the daylight saving time offset in minutes.
 
virtual timetype::MdfTimestampType GetTimeType () const =0
 Get the type of MDF timestamp.
 

Member Function Documentation

◆ GetDstOffsetMin()

virtual uint16_t mdf::IMdfTimestamp::GetDstOffsetMin ( ) const
nodiscardpure virtual
Returns
The daylight saving time offset in minutes.

◆ GetTimeNs()

virtual uint64_t mdf::IMdfTimestamp::GetTimeNs ( ) const
nodiscardpure virtual
Returns
The time in nanoseconds.

◆ GetTimeType()

virtual timetype::MdfTimestampType mdf::IMdfTimestamp::GetTimeType ( ) const
nodiscardpure virtual
Returns
The MDF timestamp type.

◆ GetTzOffsetMin()

virtual uint16_t mdf::IMdfTimestamp::GetTzOffsetMin ( ) const
nodiscardpure virtual
Returns
The timezone offset in minutes.

◆ SetTime() [1/2]

virtual void mdf::IMdfTimestamp::SetTime ( ITimestamp & timestamp)
pure virtual
Parameters
timestampAn ITimestamp object representing the time.

◆ SetTime() [2/2]

virtual void mdf::IMdfTimestamp::SetTime ( uint64_t time)
pure virtual
Parameters
timeThe time in nanoseconds.

The documentation for this class was generated from the following file: