86 cRuntime(int8_t nLastRunlevel,
const adtf::util::cCommandLine& oCommandline);
101 virtual tResult ChangeRunLevel(int8_t i8RunLevelToChangeTo);
103 tResult CallRuntimeHooks(
int nHookId,
104 uint32_t ui32Param1=0,
105 uint32_t ui32Param2=0,
110 tResult NotifyAllObjects(
int nEventId,
111 uint32_t ui32Param1=0,
112 uint32_t ui32Param2=0,
115 bool bBackwards=
false);
118 std::function<
tResult(
int, uint32_t, uint32_t,
void*,
int,
bool)> fnEventFilter);
120 bool StartedCompletedImplementation()
const;
123 tResult Exec(int8_t i8FirstRunlevelToChange, std::function<
void()> fnStartup);
128 tResult SetRunLevel(int8_t i8RunlevelToChangeTo,
bool bWait=
true)
override;
138 const char* strNameOID,
140 uint32_t ui32Flags = 0)
override;
143 const tChar* strNameOID =
"")
override;
153 tResult RegisterPlugin(
const char* strUrl,
156 uint32_t ui32Flags=0)
override;
160 tResult UnregisterAllPlugins(int8_t nRunLevel, uint32_t ui32Flags = 0)
override;
166 uint32_t ui32Flags=0)
override;
183 tResult CreateInstance(
const char* strCID,
185 const tChar* strNameOfObject =
"")
const override;
200 template<
int8_t LAST_RUN_LEVEL>
215 runtime(
const adtf::util::cCommandLine& oCommandline) :
cRuntime(LAST_RUN_LEVEL, oCommandline)
234 using detail::runtime;
242 template<
int8_t LAST_RUN_LEVEL>
247 using base_type::base_type;
249 bool StartupCompleted()
const override
251 return this->StartedCompletedImplementation();
Copyright © Audi Electronics Venture GmbH.
char tChar
The tChar defines the type for platform character set (platform and compiler dependent type).
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
A common result class usable as return value throughout.
const tChar * GetDescription() const noexcept
Get user provided error description.
tErrorCode GetErrorCode() const noexcept
Get error code.
tInt32 GetLine() const noexcept
Get line in source file where the error was reported.
cResult & operator=(decltype(ERR_NOERROR)) noexcept
Assign with ERR_NOERROR.
const tChar * GetFunction() const noexcept
Get name of the function the error was reported in.
const tChar * GetFile() const noexcept
Get name of the file the error was reported in.
The IRuntimeHook interface provides a hook callback interface.
The class cRuntime builds the standard implementation of the uCOM runtime environment.
int8_t GetRunLevel() const override
Get current run level.
virtual const char * GetRunLevelString(int8_t i8Runlevel) const =0
Logging Hook to retrieve logging message for the desired runtime changes.
tResult RegisterHook(IRuntimeHook &pHook) override
Register a Hook.
tResult UnregisterHook(IRuntimeHook &pHook) override
Unregister a Hook.
cRuntime(int8_t nLastRunlevel, const adtf::util::cCommandLine &oCommandline)
CTOR.
A_UTILS_D(cRuntime)
dptr impl
tResult GetObjects(iobject_enum< IObject > &lstOfObjects) const override
Implements the IRuntime::GetObjects.
Definition of a common level based runtime.
runtime(const adtf::util::cCommandLine &oCommandline)
CTOR.
const char * GetRunLevelString(int8_t) const override
Logging Hook to retrieve logging message for the desired runtime changes.
Special tResult implementation due to the allocation and reference counting of the tResult.
Interface definition for a container of objects.
Base object pointer to realize binary compatible reference counting in interface methods.
Use this template if you want to implement an ucom::ant::IObject based Interface and/or subclass an e...
cADTFRuntime cRuntime
Type definition for the Default Runtime of ADTF.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.