-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
229 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#pragma once | ||
|
||
#include "mdf/itimestamp.h" | ||
#include "mdfblock.h" | ||
Check failure on line 4 in include/mdf/imdftimestamp.h GitHub Actions / run on macos-latest(x64)
|
||
|
||
namespace mdf { | ||
/** | ||
* \brief Interface for MDF timestamp handling. | ||
*/ | ||
class IMdfTimeStamp { | ||
public: | ||
/** | ||
* \brief Set the time in nanoseconds. | ||
* \param time The time in nanoseconds. | ||
*/ | ||
virtual void SetTime(uint64_t time) = 0; | ||
/** | ||
* \brief Set the time using an ITimestamp object. | ||
* \param timestamp An ITimestamp object representing the time. | ||
*/ | ||
virtual void SetTime(ITimestamp ×tamp) = 0; | ||
/** | ||
* \brief Get the time in nanoseconds. | ||
* \return The time in nanoseconds. | ||
*/ | ||
[[nodiscard]] virtual uint64_t GetTimeNs() const = 0; | ||
/** | ||
* \brief Get the timezone offset in minutes. | ||
* \return The timezone offset in minutes. | ||
*/ | ||
[[nodiscard]] virtual uint16_t GetTzOffsetMin() const = 0; | ||
/** | ||
* \brief Get the daylight saving time offset in minutes. | ||
* \return The daylight saving time offset in minutes. | ||
*/ | ||
[[nodiscard]] virtual uint16_t GetDstOffsetMin() const = 0; | ||
}; | ||
} // namespace mdf::detail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.