Sen API
Sen Libraries
Toggle main menu visibility
Loading...
Searching...
No Matches
runtime_3/src/runtime.h
Go to the documentation of this file.
1
// === runtime.h =======================================================================================================
2
// Sen Infrastructure
3
// Released under the Apache License v2.0 (SPDX-License-Identifier Apache-2.0).
4
// See the LICENSE.txt file for more information.
5
// © Airbus SAS, Airbus Helicopters, and Airbus Defence and Space SAU/GmbH/SAS.
6
// =====================================================================================================================
7
8
#ifndef SEN_LIBS_KERNEL_TEST_INTEGRATION_RUNTIME_COMPATIBILITY_RUNTIME_3_SRC_RUNTIME_H
9
#define SEN_LIBS_KERNEL_TEST_INTEGRATION_RUNTIME_COMPATIBILITY_RUNTIME_3_SRC_RUNTIME_H
10
11
// test_helpers
12
#include "test_helpers/test_helpers.stl.h"
13
14
// sen
15
#include "
sen/kernel/component_api.h
"
16
17
// generated code
18
#include "stl/runtime/runtime.stl.h"
19
#include "stl/sen/kernel/kernel_objects.stl.h"
20
21
// std
22
#include <bitset>
23
24
namespace
sen::test::runtime
25
{
26
27
class
TestClassImpl
final:
public
TestClassBase
28
{
29
public
:
30
SEN_NOCOPY_NOMOVE(TestClassImpl)
31
32
public
:
33
using
TestClassBase::TestClassBase;
34
~TestClassImpl
()
override
=
default
;
35
36
protected
:
// TestClassBase
37
std::string
testMethodImpl
(
bool
arg1,
const
TestStruct& arg2,
u8
arg3)
override
;
38
std::string
testMethod2Impl
(
const
TestStructBase& arg1,
const
TestEnum& arg2)
override
;
39
void
emitEventsImpl
()
override
;
40
};
41
42
class
TesterImpl
final:
public
TesterBase
43
{
44
public
:
45
SEN_NOCOPY_NOMOVE(
TesterImpl
)
46
47
public
:
48
using
TesterBase::TesterBase;
49
~TesterImpl
()
override
=
default
;
50
51
public
:
// NativeObject
52
void
registered
(
sen::kernel::RegistrationApi
& api)
override
;
53
54
protected
:
// TesterBase
55
void
doTestsImpl
(std::promise<TestResult>&& promise)
override
;
56
void
checkLocalStateImpl
(std::promise<TestResult>&& promise)
override
;
57
void
shutdownKernelImpl
()
override
;
58
59
private
:
60
void
checkRemote(
u32
flagToSet);
61
62
private
:
63
std::shared_ptr<TestClassImpl> localObj_;
64
std::shared_ptr<sen::Subscription<TestClassInterface>> remoteObjSub_;
65
TestClassInterface* remoteObj_ =
nullptr
;
66
std::promise<TestResult> promise_;
67
std::bitset<15> localFlags_;
68
std::bitset<17> remoteFlags_;
69
bool
testMethodPassed_ =
false
;
70
bool
testMethod2Passed_ =
false
;
71
std::shared_ptr<sen::Subscription<sen::kernel::KernelApiInterface>> kernelApiSub_;
72
sen::kernel::KernelApiInterface* kernelApiObj_ =
nullptr
;
73
};
74
75
}
// namespace sen::test::runtime
76
77
#endif
// SEN_LIBS_KERNEL_TEST_INTEGRATION_RUNTIME_COMPATIBILITY_RUNTIME_3_SRC_RUNTIME_H
sen::kernel::RegistrationApi
API for objects when registered.
Definition
component_api.h:212
sen::test::runtime::TestClassImpl
Definition
runtime_1/src/runtime.h:25
sen::test::runtime::TestClassImpl::~TestClassImpl
~TestClassImpl() override=default
sen::test::runtime::TestClassImpl::emitEventsImpl
void emitEventsImpl() override
sen::test::runtime::TestClassImpl::testMethodImpl
std::string testMethodImpl(bool arg1, const TestStruct &arg2, u8 arg3) override
sen::test::runtime::TestClassImpl::testMethod2Impl
std::string testMethod2Impl(const TestStructBase &arg1, const TestEnum &arg2) override
sen::test::runtime::TesterImpl
Definition
runtime_1/src/runtime.h:40
sen::test::runtime::TesterImpl::shutdownKernelImpl
void shutdownKernelImpl() override
sen::test::runtime::TesterImpl::doTestsImpl
void doTestsImpl(std::promise< TestResult > &&promise) override
sen::test::runtime::TesterImpl::checkLocalStateImpl
void checkLocalStateImpl(std::promise< TestResult > &&promise) override
sen::test::runtime::TesterImpl::registered
void registered(sen::kernel::RegistrationApi &api) override
sen::test::runtime::TesterImpl::~TesterImpl
~TesterImpl() override=default
component_api.h
u32
uint32_t u32
Definition
numbers.h:25
u8
uint8_t u8
Definition
numbers.h:21
sen::test::runtime
Definition
runtime_1/src/runtime.h:22
libs
kernel
test
integration
runtime_compatibility
runtime_3
src
runtime.h
Generated by
1.17.0