ADTF
Loading...
Searching...
No Matches
base_clock.h
Go to the documentation of this file.
1
7
#pragma once
8
#include <
adtfstreaming3/reference_clock_intf.h
>
9
10
namespace
adtf
11
{
12
namespace
system
13
{
14
namespace
ant
15
{
16
23
class
cBaseClock
:
public
ucom::catwo::object
<services::ant::IReferenceClock::IClock,
24
ucom::cEventSource>
25
{
26
private
:
27
adtf_util::cString m_strName;
28
29
public
:
32
cBaseClock
(
const
char
* strName);
33
34
public
:
35
tResult
GetName(
base::ant::IString
&& strName)
const override
;
36
37
protected
:
44
tResult
SendResetBeginEvent
(tTimeStamp tmOldTime, tTimeStamp tmNewTime)
const
;
45
52
tResult
SendResetEndEvent
(tTimeStamp tmOldTime, tTimeStamp tmNewTime)
const
;
53
60
tResult
SendUpdateEvent
(tTimeStamp tmOldTime, tTimeStamp tmNewTime)
const
;
61
};
62
63
}
64
65
namespace
flash
66
{
67
68
class
cBaseClock
:
public
ucom::catwo::object
<services::ant::IReferenceClock::IClock,
69
services::flash::IReferenceClock::IClock,
70
ucom::cEventSource>
71
{
72
public
:
75
cBaseClock
();
76
79
cBaseClock
(
const
char
* strName);
80
85
void
SetName
(
const
char
* strName);
86
87
tResult
GetName(
base::ant::IString
&& strName)
const override
;
88
89
// you need to override at least one of these
90
tTimeStamp GetTime()
const override
;
91
adtf::base::flash::tNanoSeconds
GetTimeNs()
const override
;
92
93
protected
:
100
tResult
SendResetBeginEvent
(tTimeStamp tmOldTime, tTimeStamp tmNewTime)
const
;
101
108
tResult
SendResetEndEvent
(tTimeStamp tmOldTime, tTimeStamp tmNewTime)
const
;
109
116
tResult
SendUpdateEvent
(tTimeStamp tmOldTime, tTimeStamp tmNewTime)
const
;
117
118
protected
:
125
tResult
SendResetBeginEvent
(
base::flash::tNanoSeconds
tmOldTime,
base::flash::tNanoSeconds
tmNewTime)
const
;
126
133
tResult
SendResetEndEvent
(
base::flash::tNanoSeconds
tmOldTime,
base::flash::tNanoSeconds
tmNewTime)
const
;
134
141
tResult
SendUpdateEvent
(
base::flash::tNanoSeconds
tmOldTime,
base::flash::tNanoSeconds
tmNewTime)
const
;
142
143
private
:
144
tResult
SendEvent(
adtf::services::flash::IReferenceClock::tReferenceClockEventId
eEventId,
145
base::flash::tNanoSeconds
tmOldTime,
146
base::flash::tNanoSeconds
tmNewTime)
const
;
147
tResult
SendEvent(
adtf::services::ant::IReferenceClock::tReferenceClockEventId
eEventId,
148
tTimeStamp tmOldTime,
149
tTimeStamp tmNewTime)
const
;
150
151
private
:
152
std::string m_strName;
153
154
};
155
156
}
157
158
using
flash::cBaseClock
;
159
160
}
161
162
}
tResult
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition
result.h:736
adtf::base::ant::IString
Definition
string_intf.h:29
adtf::services::ant::IReferenceClock::tReferenceClockEventId
tReferenceClockEventId
Definition
reference_clock_intf.h:60
adtf::system::ant::cBaseClock::cBaseClock
cBaseClock(const char *strName)
adtf::system::ant::cBaseClock::SendResetEndEvent
tResult SendResetEndEvent(tTimeStamp tmOldTime, tTimeStamp tmNewTime) const
adtf::system::ant::cBaseClock::SendUpdateEvent
tResult SendUpdateEvent(tTimeStamp tmOldTime, tTimeStamp tmNewTime) const
adtf::system::ant::cBaseClock::SendResetBeginEvent
tResult SendResetBeginEvent(tTimeStamp tmOldTime, tTimeStamp tmNewTime) const
adtf::system::cBaseClock::cBaseClock
cBaseClock()
adtf::system::flash::cBaseClock
Definition
base_clock.h:71
adtf::system::flash::cBaseClock::SetName
void SetName(const char *strName)
adtf::system::flash::cBaseClock::SendResetBeginEvent
tResult SendResetBeginEvent(tTimeStamp tmOldTime, tTimeStamp tmNewTime) const
adtf::system::flash::cBaseClock::cBaseClock
cBaseClock()
adtf::system::flash::cBaseClock::SendUpdateEvent
tResult SendUpdateEvent(base::flash::tNanoSeconds tmOldTime, base::flash::tNanoSeconds tmNewTime) const
adtf::system::flash::cBaseClock::cBaseClock
cBaseClock(const char *strName)
adtf::system::flash::cBaseClock::SendResetBeginEvent
tResult SendResetBeginEvent(base::flash::tNanoSeconds tmOldTime, base::flash::tNanoSeconds tmNewTime) const
adtf::system::flash::cBaseClock::SendResetEndEvent
tResult SendResetEndEvent(base::flash::tNanoSeconds tmOldTime, base::flash::tNanoSeconds tmNewTime) const
adtf::system::flash::cBaseClock::SendResetEndEvent
tResult SendResetEndEvent(tTimeStamp tmOldTime, tTimeStamp tmNewTime) const
adtf::system::flash::cBaseClock::SendUpdateEvent
tResult SendUpdateEvent(tTimeStamp tmOldTime, tTimeStamp tmNewTime) const
adtf::ucom::catwo::object
Definition
object.h:397
adtf::system::ant
Namespace for all functionality of the ADTF System SDK provided since v3.0.
Definition
adtf_service.h:16
adtf::system::flash
Namespace for all functionality of the ADTF System SDK provided since v3.5.
Definition
base_clock.h:66
adtf::system
Namespace for the ADTF System SDK.
Definition
adtf_service.h:14
adtf
Namespace for all functionality provided by ADTF and its SDKs.
Definition
adtf_client_connector.h:14
reference_clock_intf.h
adtf::base::flash::tNanoSeconds
A timestamp with nanosecond precision.
Definition
chrono.h:23
src
libraries
systemsdk
include
adtfsystemsdk
base_clock.h
Copyright © CARIAD SE. All rights reserved | Generated on Thu Aug 6 2026 by doxygen 1.13.2 | GIT Commit Hash: 07d2f84367192978b2a55ca6aee7f968758b7220