7 #ifndef _ADTF_UCOM_ANT_RUNTIME_RUNTIME_HOOK_INTERFACE_INCLUDES_HEADER_
8 #define _ADTF_UCOM_ANT_RUNTIME_RUNTIME_HOOK_INTERFACE_INCLUDES_HEADER_
236 RHI_RunLevelDecrementing
246 CRLF_PreIncrementLevel = 0x1,
249 CRLF_PostIncrementLevel = 0x2,
252 CRLF_PreDecrementLevel = 0x4,
255 CRLF_PostDecrementLevel = 0x8
268 UOF_Automatically = 0x2
275 ORF_MarkedForDeletion = 0x1,
276 ORF_ServiceIsShutdown = 0x2,
277 ORF_RegisterOnChangingRL = 0x4
287 PF_MARKEDFORDELETION = 0x2
297 CRF_NoHookOnCreation = 0x1,
300 CRF_FastCreation = 0x2,
303 CRF_NoAutoDeregistration = 0x4
336 uint32_t ui32Flags = 0) = 0;
383 const char* strNameOID,
385 uint32_t ui32Flags = 0) = 0;
396 const tChar* strNameOID =
"") = 0;
424 uint32_t ui32Flags = 0) = 0;
447 uint32_t ui32Flags=0) = 0;
528 const tChar* strNameOfObject =
"")
const = 0;
char tChar
The tChar defines the type for platform character set (platform and compiler dependent type).
A common result class usable as return value throughout.
Base class for every interface type within the uCOM.
The IRuntimeHook interface provides a hook callback interface.
virtual tResult RuntimeHook(const tHookInfo &sHookInfo, const iobject_ptr< IObject > &pObject)=0
This method will be called at specific stages during runtime operation, see IRuntime::tRuntimeHookId.
The IRuntime interface controls global system startup and shutdown.
virtual tResult UnregisterHook(IRuntimeHook &oHook)=0
Unregister hook.
virtual tResult GetPlugins(iobject_enum< const IPluginInfo > &lstPluginInfos) const =0
Gets a object reference list of registered plugins.
virtual tResult CreateInstance(const char *strCID, iobject_ptr< IObject > &pObject, const tChar *strNameOfObject="") const =0
Creates a new instance of an object.
virtual tResult UnregisterAllPlugins(int8_t nRunLevel, uint32_t ui32Flags=0)=0
Unregister all plugin from plugin registry.
virtual tResult GetObjects(iobject_enum< IObject > &lstOfObjects) const =0
Get a list (enumeration) of registered instances.
virtual tResult SetRunLevel(int8_t nRunLevel, bool bWait=true)=0
Set run level.
virtual tResult RegisterObject(const iobject_ptr< IObject > &pObject, const char *strNameOID, int8_t nRunLevel, uint32_t ui32Flags=0)=0
Register object at object registry.
virtual tResult GetClasses(iobject_enum< const IClassInfo > &lstOfClasses) const =0
Returns a list of classes.
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 ...
virtual tResult UnregisterPlugin(const iobject_ptr< IPluginInfo > &pPluginInfo, uint32_t ui32Flags=0)=0
Unregister plugin from plugin registry.
virtual tResult RegisterPlugin(const char *strUrl, int8_t nRunLevel, iobject_ptr< IPluginInfo > &pPluginInfo, uint32_t ui32Flags=0)=0
Register plugin at the plugin registry.
tClassRegistryFlags
Flags to affect the creation speed of classes.
virtual tResult RegisterHook(IRuntimeHook &oHook)=0
Register hook.
virtual tResult GetClassFactories(iobject_enum< const IClassFactory > &lstOfClassFactories) const =0
Gets a list for all registered class factories.
virtual tResult GetObject(iobject_ptr< IObject > &pObject) const =0
Get registered object from object registry by interface.
tRuntimeHookId
Runtime hook identifiers.
@ RHI_RunLevelPreDecrement
Called before the run level is decremented.
@ RHI_RunLevelPostIncrement
Called after the run level was incremented.
@ RHI_ServiceStarted
Called after a service was started.
@ RHI_RunLevelIncrementing
Called before the run level is incrementing.
@ RHI_UnregisterPlugin
Called before a plugin is unregistered.
@ RHI_Start
Called after the runtime instance was started.
@ RHI_RunLevelPostDecrement
Called after the run level was decremented.
@ RHI_ServiceStopped
Called after a service has been stopped.
@ RHI_RegisterObject
Called after an object has been registered.
@ RHI_Stop
Called before the runtime instance is stopped.
@ RHI_ServiceStarting
Called before a service is started.
@ RHI_UnregisterObject
Called before an object is unregistered.
@ RHI_LoadPlugin
Called after a plugin has been loaded.
@ RHI_ServiceStopping
Called before a service is stopped.
@ RHI_RegisterPlugin
Called after a plugin has been registered, after it has been loaded, see RHI_LoadPlugin.
@ RHI_RunLevelPreIncrement
Called before the run level is incremented.
@ RHI_CreateInstance
Called after an instance has been created.
@ RHI_Destroy
Called before the runtime instance is destroyed.
@ RHI_Create
Called after the runtime instance was created.
@ RHI_RegisterClass
Called after a class has been registered.
@ RHI_UnregisterClass
Called before a class is unregistered.
tUnregisterObjectFlags
Run level change flags.
virtual tResult GetObject(iobject_ptr< IObject > &pObject, const char *strNameOID) const =0
Get registered object from object registry.
tPluginFlags
InternalFlags.
ADTF_IID(IRuntime, "runtime.ant.ucom.adtf.iid")
Marks the IRuntime to be castable with the ucom_cast<>
tChangeRunLevelFlags
Run level change flags.
~IRuntime()=default
Protected destructor --> Use implemented Destroy() instead of delete!
virtual tResult UnregisterClassFactory(const iobject_ptr< const IClassFactory > &pClassFactory)=0
Unregister a class factory from class registry.
virtual int8_t GetRunLevel() const =0
Get current run level.
virtual tResult UnregisterObject(const iobject_ptr< IObject > &pObject, const tChar *strNameOID="")=0
Unregister object from object registry.
Interface definition for a container of objects.
Base object pointer to realize binary compatible reference counting in interface methods.
virtual bool StartupCompleted() const =0
ADTF_IID(IRuntimeStartup, "runtime_startup.spider.ucom.adtf.iid")
Marks the IRuntimeStartup to be castable with the ucom_cast<>
@ RL_Internal
internal runlevel Is not for users !
Namespace for entire ADTF SDK.
uint32_t idHook
Defines event type (IRuntime::tRuntimeHookId)
void * pvData
optional data pointer.
uint32_t ui32Param1
Depends on idHook.
uint32_t ui32Param2
Depends on idHook.
size_t szData
size of the data provided through pvData.