ADTF
Loading...
Searching...
No Matches
service_intf.h
Go to the documentation of this file.
1
7
8
#ifndef _ADTF_UCOM_ANT_SERVICE_INTERFACE_INCLUDES_HEADER_
9
#define _ADTF_UCOM_ANT_SERVICE_INTERFACE_INCLUDES_HEADER_
10
11
namespace
adtf
12
{
13
namespace
ucom
14
{
15
namespace
ant
16
{
17
23
class
DOEXPORT
IService
:
public
IObjectInfo
24
{
25
public
:
30
ADTF_IID
(
IService
,
"service.ant.ucom.adtf.iid"
);
31
32
public
:
161
enum
tServiceEvent
: uint32_t
162
{
164
SE_Unknown
= 0,
165
170
SE_Starting
= 1,
171
176
SE_Ready
= 2,
177
182
SE_Stopping
= 3,
183
188
SE_Stopped
= 4,
189
194
SE_ChangeRunLevel
= 5
195
};
196
197
198
enum class
tServiceState: uint32_t
199
{
200
Deinitialized = 0,
201
Initialized = 1
202
};
203
204
public
:
205
206
virtual
tServiceState GetState()
const
= 0;
207
208
virtual
tResult
SetState(tServiceState eState) = 0;
209
224
virtual
tResult
ServiceEvent
(
int
nEventId,
225
uint32_t ui32Param1 = 0,
226
uint32_t ui32Param2 = 0,
227
void
* pvData =
nullptr
,
228
int
szData = 0) = 0;
229
230
protected
:
232
~IService
() =
default
;
233
};
234
235
}
//namespace ant
236
238
using
IService
=
ant::IService
;
239
240
}
//namespace ucom
241
}
//namespace adtf
242
243
//*************************************************************************************************
244
#endif
//_ADTF_UCOM_ANT_SERVICE_INTERFACE_INCLUDES_HEADER_
tResult
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition
result.h:736
adtf::ucom::ant::IObjectInfo
Definition
object_info_intf.h:23
adtf::ucom::ant::IService
Definition
service_intf.h:24
adtf::ucom::ant::IService::ServiceEvent
virtual tResult ServiceEvent(int nEventId, uint32_t ui32Param1=0, uint32_t ui32Param2=0, void *pvData=nullptr, int szData=0)=0
adtf::ucom::ant::IService::~IService
~IService()=default
Protected destructor --> Only the final implementation can be destroyed!
adtf::ucom::ant::IService::tServiceEvent
tServiceEvent
Definition
service_intf.h:162
adtf::ucom::ant::IService::SE_ChangeRunLevel
@ SE_ChangeRunLevel
Definition
service_intf.h:194
adtf::ucom::ant::IService::SE_Starting
@ SE_Starting
Definition
service_intf.h:170
adtf::ucom::ant::IService::SE_Unknown
@ SE_Unknown
Unknown Event.
Definition
service_intf.h:164
adtf::ucom::ant::IService::SE_Ready
@ SE_Ready
Definition
service_intf.h:176
adtf::ucom::ant::IService::SE_Stopping
@ SE_Stopping
Definition
service_intf.h:182
adtf::ucom::ant::IService::SE_Stopped
@ SE_Stopped
Definition
service_intf.h:188
adtf::ucom::ant::IService::ADTF_IID
ADTF_IID(IService, "service.ant.ucom.adtf.iid")
adtf::ucom::ant
Namespace for all functionality of the ADTF UCOM SDK provided since v3.0.
Definition
test_runtime.h:14
adtf::ucom
Namespace for the ADTF uCOM SDK.
Definition
adtf_system.h:324
adtf::ucom::IService
ant::IService IService
Alias always bringing the latest version of ant::IService into scope.
Definition
service_intf.h:238
adtf
Namespace for all functionality provided by ADTF and its SDKs.
Definition
adtf_client_connector.h:14
src
libraries
ucom3
include
adtfucom3
interfaces
service_intf.h
Copyright © CARIAD SE. All rights reserved | Generated on Thu Aug 6 2026 by doxygen 1.13.2 | GIT Commit Hash: 07d2f84367192978b2a55ca6aee7f968758b7220