ADTF
|
The IRuntime interface controls global system startup and shutdown. More...
Public Member Functions | |
ADTF_IID (IRuntime, "runtime.ant.ucom.adtf.iid") | |
Marks the IRuntime to be castable with the ucom_cast<> More... | |
virtual tResult | SetRunLevel (int8_t nRunLevel, bool bWait=true)=0 |
Set run level. More... | |
virtual int8_t | GetRunLevel () const =0 |
Get current run level. More... | |
virtual tResult | RegisterClassFactory (const iobject_ptr< const IClassFactory > &pClassFactory, uint32_t ui32Flags=0)=0 |
Register class at class registry The RegisterClass method registers all classes of the given factory at the class registry. More... | |
virtual tResult | UnregisterClassFactory (const iobject_ptr< const IClassFactory > &pClassFactory)=0 |
Unregister a class factory from class registry. More... | |
virtual tResult | GetClasses (iobject_enum< const IClassInfo > &lstOfClasses) const =0 |
Returns a list of classes. More... | |
virtual tResult | GetClassFactories (iobject_enum< const IClassFactory > &lstOfClassFactories) const =0 |
Gets a list for all registered class factories. More... | |
virtual tResult | RegisterObject (const iobject_ptr< IObject > &pObject, const char *strNameOID, int8_t nRunLevel, uint32_t ui32Flags=0)=0 |
Register object at object registry. More... | |
virtual tResult | UnregisterObject (const iobject_ptr< IObject > &pObject, const tChar *strNameOID="")=0 |
Unregister object from object registry. More... | |
virtual tResult | GetObjects (iobject_enum< IObject > &lstOfObjects) const =0 |
Get a list (enumeration) of registered instances. More... | |
virtual tResult | RegisterPlugin (const char *strUrl, int8_t nRunLevel, iobject_ptr< IPluginInfo > &pPluginInfo, uint32_t ui32Flags=0)=0 |
Register plugin at the plugin registry. More... | |
virtual tResult | UnregisterPlugin (const iobject_ptr< IPluginInfo > &pPluginInfo, uint32_t ui32Flags=0)=0 |
Unregister plugin from plugin registry. More... | |
virtual tResult | UnregisterAllPlugins (int8_t nRunLevel, uint32_t ui32Flags=0)=0 |
Unregister all plugin from plugin registry. More... | |
virtual tResult | GetPlugins (iobject_enum< const IPluginInfo > &lstPluginInfos) const =0 |
Gets a object reference list of registered plugins. More... | |
virtual tResult | RegisterHook (IRuntimeHook &oHook)=0 |
Register hook. More... | |
virtual tResult | UnregisterHook (IRuntimeHook &oHook)=0 |
Unregister hook. More... | |
virtual tResult | GetObject (iobject_ptr< IObject > &pObject, const char *strNameOID) const =0 |
Get registered object from object registry. More... | |
virtual tResult | GetObject (iobject_ptr< IObject > &pObject) const =0 |
Get registered object from object registry by interface. More... | |
virtual tResult | CreateInstance (const char *strCID, iobject_ptr< IObject > &pObject, const tChar *strNameOfObject="") const =0 |
Creates a new instance of an object. More... | |
Public Member Functions inherited from IObject | |
ADTF_IID (IObject, "object.ant.ucom.adtf.iid") | |
Marks the IObject to be castable with the ucom_cast() More... | |
Protected Member Functions | |
~IRuntime ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
Protected Member Functions inherited from IObject | |
~IObject ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
The IRuntime interface controls global system startup and shutdown.
Definition at line 110 of file runtime_intf.h.
enum tChangeRunLevelFlags : uint32_t |
Run level change flags.
Definition at line 240 of file runtime_intf.h.
enum tClassRegistryFlags : uint32_t |
Flags to affect the creation speed of classes.
Definition at line 291 of file runtime_intf.h.
enum tObjectRegistryFlags : uint32_t |
Enumerator | |
---|---|
ORF_None | |
ORF_MarkedForDeletion | |
ORF_ServiceIsShutdown | |
ORF_RegisterOnChangingRL |
Definition at line 272 of file runtime_intf.h.
enum tPluginFlags : uint8_t |
InternalFlags.
Definition at line 281 of file runtime_intf.h.
enum tRunLevel : int8_t |
Run levels.
Enumerator | |
---|---|
RL_Shutdown | The system is shut down. |
RL_Internal | Invalid run level that signals unmanaged modules. |
Definition at line 121 of file runtime_intf.h.
enum 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.
|
Definition at line 131 of file runtime_intf.h.
enum tUnregisterObjectFlags : uint32_t |
Run level change flags.
Enumerator | |
---|---|
UOF_None | Unused. |
UOF_Manually | Manually Unregistered Object. |
UOF_Automatically | Automatically Unregistered Object by Runlevelchange. |
Definition at line 259 of file runtime_intf.h.
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 |
Referenced by adtf::streaming::devil::add_graph_object().
|
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. |
Referenced by sample_writer< DATA_TYPE, BASE >::sample_writer(), adtf::services::ant::adtf_register_macro(), adtf::services::ant::adtf_resolve_macros(), cSampleWriter::BeginStreaming(), adtf::services::elasto::get_player(), adtf::services::quiet::get_player(), adtf::services::ant::get_player(), adtf::services::bat::get_player(), qt_ui_filter< FILTERBASECLASS >::Init(), qt_ui_filter< FILTERBASECLASS, QTWINDOWBASECLASS >::Init(), qt_ui_service< SERVICEBASECLASS >::ServiceInit(), and qt_ui_service< SERVICEBASECLASS, QTWINDOWBASECLASS >::ServiceInit().
|
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. |