onboardapi  9.10.0
by Rheinmetall
M_TimeManager::IClient Class Reference

Public Member Functions

virtual ~IClient ()
 
virtual void ReportTime (M_Common::UtcType const &Time, M_TimeManager::TimeSourceType const &Source, bool IsRemoved)
 
virtual void ResponseTime (M_Common::UtcType const &Time, M_TimeManager::TimeSourceType const &Source)
 

Detailed Description

Time client interface. Contains callback operations from the time service to a client.

Constructor & Destructor Documentation

◆ ~IClient()

M_TimeManager::IClient::~IClient ( )
virtual

Member Function Documentation

◆ ReportTime()

void M_TimeManager::IClient::ReportTime ( M_Common::UtcType const &  Time,
M_TimeManager::TimeSourceType const &  Source,
bool  IsRemoved 
)
virtual

Report the current time of the time service.

Parameters
TimeCurrent time communicated by the time service.
SourceThe source of the time.
IsRemovedIndicates if the status is no longer available. Note: This will always be set to true when a service has been shut down. After this has been set to true, the status will no longer be available to late joiners.

◆ ResponseTime()

void M_TimeManager::IClient::ResponseTime ( M_Common::UtcType const &  Time,
M_TimeManager::TimeSourceType const &  Source 
)
virtual

Respond the time to a client upon a request.

Parameters
TimeSpecified point in time.
SourceThe source of the time.