ADTF
Loading...
Searching...
No Matches
adtf::ucom::cRuntime Class Referenceabstract

#include <runtime.h>

Inherits adtf::ucom::catwo::object< IRuntime, vision::IRuntimeArguments >.

Inherited by adtf::ucom::runtime< tTestRL::RL_Running >, and adtf::ucom::runtime< LAST_RUN_LEVEL >.

Public Member Functions

 cRuntime (int8_t nLastRunlevel)
 dptr impl
 
 cRuntime (int8_t nLastRunlevel, const adtf::util::cCommandLine &oCommandline)
 
tResult SetRunLevel (int8_t i8RunlevelToChangeTo, bool bWait=true) override
 
int8_t GetRunLevel () const override
 
tResult RegisterObject (const iobject_ptr< IObject > &pObject, const char *strNameOID, int8_t nRunLevel, uint32_t ui32Flags=0) override
 
tResult UnregisterObject (const iobject_ptr< IObject > &pObject, const tChar *strNameOID="") override
 
tResult GetObjects (iobject_enum< IObject > &lstOfObjects) const override
 
tResult RegisterPlugin (const char *strUrl, int8_t nRunLevel, iobject_ptr< IPluginInfo > &pPluginInfo, uint32_t ui32Flags=0) override
 
tResult UnregisterPlugin (const iobject_ptr< IPluginInfo > &pPluginInfo, uint32_t ui32Flags=0) override
 
tResult UnregisterAllPlugins (int8_t nRunLevel, uint32_t ui32Flags=0) override
 
tResult GetPlugins (iobject_enum< const IPluginInfo > &lstPluginInfos) const override
 
tResult RegisterClassFactory (const iobject_ptr< const IClassFactory > &pClassFactory, uint32_t ui32Flags=0) override
 
tResult UnregisterClassFactory (const iobject_ptr< const IClassFactory > &pClassFactory) override
 
tResult GetClasses (iobject_enum< const IClassInfo > &lstOfClasses) const override
 
tResult GetClassFactories (iobject_enum< const IClassFactory > &lstOfClasses) const override
 
tResult RegisterHook (IRuntimeHook &pHook) override
 Register a Hook.
 
tResult UnregisterHook (IRuntimeHook &pHook) override
 Unregister a Hook.
 
tResult GetObject (iobject_ptr< IObject > &pObject, const char *strNameOID) const override
 
tResult GetObject (iobject_ptr< IObject > &pObject) const override
 
tResult CreateInstance (const char *strCID, iobject_ptr< IObject > &oObject, const tChar *strNameOfObject="") const override
 
tResult GetArguments (const adtf::ucom::nitro::ifunction< tResult(const char *)> &oCallback) const override
 
- Public Member Functions inherited from adtf::ucom::catwo::object< IRuntime, vision::IRuntimeArguments >
tResult GetInterface (const char *i_strIID, void *&o_pInterface) override
 Query interfaces on an object.
 
tResult GetInterface (const char *i_strIID, const void *&o_pInterface) const override
 Provides const correct interface querying.
 
void Destroy () const override
 Switch from non-virtual destructor to virtual destructor.
 
tResult GetInterface (const char *i_strIID, void *&o_pInterface) override
 Query interfaces on an object.
 
tResult GetInterface (const char *i_strIID, const void *&o_pInterface) const override
 Provides const correct interface querying.
 
void Destroy () const override
 Switch from non-virtual destructor to virtual destructor.
 
tResult GetInterface (const char *i_strIID, void *&o_pInterface) override
 Query interfaces on an object.
 
tResult GetInterface (const char *i_strIID, const void *&o_pInterface) const override
 Provides const correct interface querying.
 
void Destroy () const override
 Switch from non-virtual destructor to virtual destructor.
 
- Public Member Functions inherited from adtf::ucom::ant::IObject
 ADTF_IID (IObject, "object.ant.ucom.adtf.iid")
 

Protected Member Functions

virtual ~cRuntime ()
 
virtual const char * GetRunLevelString (int8_t i8Runlevel) const =0
 
tResult CallRuntimeHooks (int nHookId, uint32_t ui32Param1=0, uint32_t ui32Param2=0, void *pvData=NULL, int szData=0, const iobject_ptr< IObject > &pObject=object_ptr< IObject >())
 
tResult NotifyAllObjects (int nEventId, uint32_t ui32Param1=0, uint32_t ui32Param2=0, void *pvData=NULL, int szData=0, bool bBackwards=false)
 
void SetEventFilter (std::function< tResult(int, uint32_t, uint32_t, void *, int, const iobject_ptr< IObject > &)> fnHookFilter, std::function< tResult(int, uint32_t, uint32_t, void *, int, bool)> fnEventFilter)
 
- Protected Member Functions inherited from adtf::ucom::ant::IObject
 ~IObject ()=default
 Protected destructor --> Only the final implementation can be destroyed!
 

Detailed Description

The class cRuntime builds the standard implementation of the uCOM runtime environment.

Constructor & Destructor Documentation

◆ cRuntime()

adtf::ucom::cRuntime::cRuntime ( int8_t nLastRunlevel,
const adtf::util::cCommandLine & oCommandline )

CTOR

Parameters
[in]nLastRunlevelhighest runlevel can be reached
[in]oCommandlineCommandline of the application instantiated the runtime

◆ ~cRuntime()

virtual adtf::ucom::cRuntime::~cRuntime ( )
protectedvirtual

DTOR

Member Function Documentation

◆ GetObjects()

tResult adtf::ucom::cRuntime::GetObjects ( iobject_enum< IObject > & lstOfObjects) const
override

Implements the IRuntime::GetObjects.

Parameters
[out]lstOfObjectspointer to a iobject_enum where to push the objects
Returns

◆ GetRunLevel()

int8_t adtf::ucom::cRuntime::GetRunLevel ( ) const
override

Get current run level. The GetRunLevel method returns the current run level.

Returns
Returns the current run level.
Note
rtsafe

◆ GetRunLevelString()

virtual const char * adtf::ucom::cRuntime::GetRunLevelString ( int8_t i8Runlevel) const
protectedpure virtual

Logging Hook to retrieve logging message for the desired runtime changes.

Parameters
i8Runlevel[in] Runlevel the logging want a readable name for
Returns
The readable name for the runlevel

Implemented in adtf::ucom::runtime< LAST_RUN_LEVEL >, adtf::ucom::runtime< tTestRL::RL_Running >, and adtf::ucom::runtime< tTestRL::RL_Running >.


The documentation for this class was generated from the following file: