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

Interface for timestamp handling in MDF files.

#include <itimestamp.h>

Inheritance diagram for mdf::ITimestamp:

Public Member Functions

virtual ~ITimestamp ()=default
 Virtual destructor for ITimestamp.
 
virtual uint64_t GetTimeNs () const =0
 Get the time in nanoseconds.
 
virtual int16_t GetTimezoneMin () const =0
 Get the timezone offset in minutes.
 
virtual int16_t GetDstMin () const =0
 Get the daylight saving time offset in minutes.
 
virtual uint64_t GetUtcTimeNs () const =0
 Get the UTC time in nanoseconds.
 

Member Function Documentation

◆ GetDstMin()

virtual int16_t mdf::ITimestamp::GetDstMin ( ) const
nodiscardpure virtual
Returns
DST offset in minutes.

Implemented in mdf::LocalTimestamp, mdf::TimezoneTimestamp, and mdf::UtcTimestamp.

◆ GetTimeNs()

virtual uint64_t mdf::ITimestamp::GetTimeNs ( ) const
nodiscardpure virtual
Returns
Time in nanoseconds.

Implemented in mdf::LocalTimestamp, mdf::TimezoneTimestamp, and mdf::UtcTimestamp.

◆ GetTimezoneMin()

virtual int16_t mdf::ITimestamp::GetTimezoneMin ( ) const
nodiscardpure virtual
Returns
Timezone offset in minutes.

Implemented in mdf::LocalTimestamp, mdf::TimezoneTimestamp, and mdf::UtcTimestamp.

◆ GetUtcTimeNs()

virtual uint64_t mdf::ITimestamp::GetUtcTimeNs ( ) const
nodiscardpure virtual
Returns
UTC time in nanoseconds.

Implemented in mdf::LocalTimestamp, mdf::TimezoneTimestamp, and mdf::UtcTimestamp.


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