MDF Lib 2.2
Interface against MDF 3/4 files
Loading...
Searching...
No Matches
imdftimestamp.h
1#pragma once
2
3#include "mdf/itimestamp.h"
4
5namespace mdf {
6
7namespace timetype
8{
9enum MdfTimestampType {
10 kUtcTime,
11 kLocalTime,
12 kLocalTimeTz,
13 kTimezoneTime
14};
15}
16
17class ITimestamp;
18
23 public:
28 virtual void SetTime(uint64_t time) = 0;
33 virtual void SetTime(ITimestamp &timestamp) = 0;
38 [[nodiscard]] virtual uint64_t GetTimeNs() const = 0;
43 [[nodiscard]] virtual uint16_t GetTzOffsetMin() const = 0;
48 [[nodiscard]] virtual uint16_t GetDstOffsetMin() const = 0;
53 [[nodiscard]] virtual timetype::MdfTimestampType GetTimeType() const = 0;
54};
55} // namespace mdf
Interface for MDF timestamp handling.
Definition imdftimestamp.h:22
virtual void SetTime(ITimestamp &timestamp)=0
Set the time using an ITimestamp object.
virtual uint16_t GetDstOffsetMin() const =0
Get the daylight saving time offset in minutes.
virtual uint64_t GetTimeNs() const =0
Get the time in nanoseconds.
virtual timetype::MdfTimestampType GetTimeType() const =0
Get the type of MDF timestamp.
virtual void SetTime(uint64_t time)=0
Set the time in nanoseconds.
virtual uint16_t GetTzOffsetMin() const =0
Get the timezone offset in minutes.
Interface for timestamp handling in MDF files.
Definition itimestamp.h:17
Main namespace for the MDF library.
Definition canmessage.h:17