|
ADTF
|
#include <runtime_intf.h>
Inherits adtf::ucom::ant::IObject.
Public Member Functions | |
| ADTF_IID (IRuntime, "runtime.ant.ucom.adtf.iid") | |
| virtual tResult | SetRunLevel (int8_t nRunLevel, bool bWait=true)=0 |
| virtual int8_t | GetRunLevel () const =0 |
| virtual tResult | RegisterClassFactory (const iobject_ptr< const IClassFactory > &pClassFactory, uint32_t ui32Flags=0)=0 |
| virtual tResult | UnregisterClassFactory (const iobject_ptr< const IClassFactory > &pClassFactory)=0 |
| virtual tResult | GetClasses (iobject_enum< const IClassInfo > &lstOfClasses) const =0 |
| virtual tResult | GetClassFactories (iobject_enum< const IClassFactory > &lstOfClassFactories) const =0 |
| virtual tResult | RegisterObject (const iobject_ptr< IObject > &pObject, const char *strNameOID, int8_t nRunLevel, uint32_t ui32Flags=0)=0 |
| virtual tResult | UnregisterObject (const iobject_ptr< IObject > &pObject, const tChar *strNameOID="")=0 |
| virtual tResult | GetObjects (iobject_enum< IObject > &lstOfObjects) const =0 |
| virtual tResult | RegisterPlugin (const char *strUrl, int8_t nRunLevel, iobject_ptr< IPluginInfo > &pPluginInfo, uint32_t ui32Flags=0)=0 |
| virtual tResult | UnregisterPlugin (const iobject_ptr< IPluginInfo > &pPluginInfo, uint32_t ui32Flags=0)=0 |
| virtual tResult | UnregisterAllPlugins (int8_t nRunLevel, uint32_t ui32Flags=0)=0 |
| virtual tResult | GetPlugins (iobject_enum< const IPluginInfo > &lstPluginInfos) const =0 |
| virtual tResult | RegisterHook (IRuntimeHook &oHook)=0 |
| virtual tResult | UnregisterHook (IRuntimeHook &oHook)=0 |
| virtual tResult | GetObject (iobject_ptr< IObject > &pObject, const char *strNameOID) const =0 |
| virtual tResult | GetObject (iobject_ptr< IObject > &pObject) const =0 |
| virtual tResult | CreateInstance (const char *strCID, iobject_ptr< IObject > &pObject, const tChar *strNameOfObject="") const =0 |
Public Member Functions inherited from adtf::ucom::ant::IObject | |
| ADTF_IID (IObject, "object.ant.ucom.adtf.iid") | |
Protected Member Functions | |
| ~IRuntime ()=default | |
| Protected destructor --> Only the final implementation can be destroyed! | |
Protected Member Functions inherited from adtf::ucom::ant::IObject | |
| ~IObject ()=default | |
| Protected destructor --> Only the final implementation can be destroyed! | |
The IRuntime interface controls global system startup and shutdown.
| enum adtf::ucom::ant::IRuntime::tChangeRunLevelFlags : uint32_t |
Run level change flags.
| enum adtf::ucom::ant::IRuntime::tClassRegistryFlags : uint32_t |
Flags to affect the creation speed of classes.
| enum adtf::ucom::ant::IRuntime::tObjectRegistryFlags : uint32_t |
| enum adtf::ucom::ant::IRuntime::tPluginFlags : uint8_t |
| enum adtf::ucom::ant::IRuntime::tRunLevel : int8_t |
| enum adtf::ucom::ant::IRuntime::tRuntimeHookId : uint32_t |
Runtime hook identifiers.
| Enumerator | |
|---|---|
| RHI_Create | Called after the runtime instance was created. |
| RHI_Start | Called after the runtime instance was started. |
| RHI_Stop | Called before the runtime instance is stopped. |
| RHI_Destroy | Called before the runtime instance is destroyed. |
| RHI_RegisterObject | Called after an object has been registered.
|
| RHI_UnregisterObject | Called before an object is unregistered.
|
| RHI_RegisterClass | Called after a class has been registered.
|
| RHI_UnregisterClass | Called before a class is unregistered.
|
| RHI_RegisterPlugin | Called after a plugin has been registered, after it has been loaded, see RHI_LoadPlugin.
|
| RHI_UnregisterPlugin | Called before a plugin is unregistered.
|
| RHI_LoadPlugin | Called after a plugin has been loaded.
|
| RHI_CreateInstance | Called after an instance has been created.
|
| RHI_ServiceStarting | Called before a service is started.
|
| RHI_ServiceStarted | Called after a service was started.
|
| RHI_ServiceStopping | Called before a service is stopped.
|
| RHI_ServiceStopped | Called after a service has been stopped.
|
| RHI_RunLevelPreIncrement | Called before the run level is incremented.
|
| RHI_RunLevelPostIncrement | Called after the run level was incremented.
|
| RHI_RunLevelPreDecrement | Called before the run level is decremented.
|
| RHI_RunLevelPostDecrement | Called after the run level was decremented.
|
| RHI_RunLevelIncrementing | Called before the run level is incrementing.
|
| RHI_RunLevelDecrementing | Called while the run level is decrementing.
|
| enum adtf::ucom::ant::IRuntime::tUnregisterObjectFlags : uint32_t |
| adtf::ucom::ant::IRuntime::ADTF_IID | ( | IRuntime | , |
| "runtime.ant.ucom.adtf.iid" | ) |
Marks the IRuntime to be castable with the ucom_cast<>
|
pure virtual |
Creates a new instance of an object. The CreateInstance method creates a single uninitialized object of the class associated with a specified class identifier.
| [in] | strCID | Class identifier (CID) identifying the type of the object to create |
| [out] | pObject | Shared pointer that receives the created instance as base pointer of type IObject. Upon successful return, o_pObject points to the IObject interface of the requested object. Upon failure, nullptr == o_pObject.Get(). |
| [in] | strNameOfObject | Name of the object to set |
|
pure virtual |
Returns a list of classes.
| [out] | lstOfClasses | push interface to an list af IClassInfo Container (see i.e. object_list) |
|
pure virtual |
Gets a list for all registered class factories.
| [out] | lstOfClassFactories | push interface to an list af IClassFactory Container (see i.e. object_list) |
|
pure virtual |
Get registered object from object registry by interface.
| [out] | pObject | Shared pointer that receives the identified object as base pointer of type IObject. Upon successful return, pObject points to the IObject interface of the requested object. Upon failure, nullptr == pObject.Get(). |
| ERR_NOERROR | Everything went fine. |
| ERR_INVALID_STATE | The runtime hasn't been initialized yet. |
| ERR_NOT_FOUND | Object identified by strOID is unknown to the object registry. |
|
pure virtual |
Get registered object from object registry.
| [in] | strNameOID | Object instance identifier. If nullptr, the first object matching the requested interface type is returned. |
| [out] | pObject | Shared pointer that receives the identified object as base pointer of type IObject. Upon successful return, o_pObject points to the IObject interface of the requested object. Upon failure, nullptr == o_pObject.Get(). |
| ERR_NOERROR | Everything went fine. |
| ERR_INVALID_STATE | The runtime hasn't been initialized yet. |
| ERR_NOT_FOUND | Object identified by strOID is unknown to the object registry. |
|
pure virtual |
Get a list (enumeration) of registered instances. The EnumObjects method enumerates all registered instances of the object registry.
| [out] | lstOfObjects | pointer to a iobject_enum where to push the objects (see i.e. adtf::ucom::ant::object_list) |
|
pure virtual |
Gets a object reference list of registered plugins. The GetPlugins method enumerates all registered plugins of the plugin registry.
| [out] | lstPluginInfos | reference to a iobject_enum where to push the plugin references (see i.e. object_list) |
|
pure virtual |
Get current run level. The GetRunLevel method returns the current run level.
|
pure virtual |
Register class at class registry The RegisterClass method registers all classes of the given factory at the class registry.
| pClassFactory | [in] Pointer to the class factory instance. |
| ui32Flags | [in] Registration flags (see IRuntime::tClassRegistryFlags for an explanation of the flags). |
|
pure virtual |
Register hook. The RegisterHook method registers a hook interface.
| [in] | oHook | Refernce to the hook interface to be registered. |
|
pure virtual |
Register object at object registry. The RegisterObject method registers an object at the object registry.
| [in] | pObject | Pointer to the object instance. |
| [in] | strNameOID | Unique identifier for the registered object. |
| [in] | nRunLevel | Required runlevel. |
| [in] | ui32Flags | Registration flags. (for internal use only) |
|
pure virtual |
Register plugin at the plugin registry. The RegisterPlugin method registers a plugin at the plugin registry.
| [in] | strUrl | Url of plugin to be registered. |
| [in] | nRunLevel | Plugin runlevel. |
| [in] | pPluginInfo | Pointer to plugininfo interface. |
| [in] | ui32Flags | Registration flags. |
|
pure virtual |
Set run level. The SetRunLevel method changes the global run level and manages all services dependencies.
| [in] | nRunLevel | runlevel to set. |
| [in] | bWait | wait until runlevel is changed |
|
pure virtual |
Unregister all plugin from plugin registry. The UnregisterAllPlugins method unregisters all plugin from the plugin registry.
| nRunLevel | [in] Runlevel information. |
| ui32Flags | [in] Unregistration flags. |
|
pure virtual |
Unregister a class factory from class registry.
All classes this factory is able to construct will be unregistered.
| [in] | pClassFactory | classfactory reference to unregister. |
|
pure virtual |
Unregister hook. The UnregisterHook method unregisters a hook interface.
| [in] | oHook | Refernce to the hook interface to be registered.. |
|
pure virtual |
Unregister object from object registry. The UnregisterObject method unregisters an object from the object registry.
| [in] | pObject | Pointer to the object instance. |
| [in] | strNameOID | Unique identifier for the registered instance. |
|
pure virtual |
Unregister plugin from plugin registry. The UnregisterPlugin method unregisters a plugin from the plugin registry.
| pPluginInfo | [in] object reference to a plugin info instance. |
| ui32Flags | [in] Unregistration flags. |