|
ADTF
|
#include <runtime_intf.h>
Classes | |
| struct | tHookInfo |
Public Member Functions | |
| virtual tResult | RuntimeHook (const tHookInfo &sHookInfo, const iobject_ptr< IObject > &pObject)=0 |
The IRuntimeHook interface provides a hook callback interface.
This mechanism allows you to react upon changes within the runtime. Use the IRuntime::RegisterHook and IRuntime::UnregisterHook methods to insert your hook into the processing chain. Hooks are called before and after an operation is performed in the runtime.
|
pure virtual |
This method will be called at specific stages during runtime operation, see IRuntime::tRuntimeHookId.
With the help of the Runtime Hook mechanism it is possible to react upon changes happening within the runtime. For a complete list of hook locations and the information provided by those hooks see IRuntime::tRuntimeHookId.
Please keep in mind that this is a very advanced interaction with the ADTF System that is rarely required. Most Problems can be easily resolved without resorting to this techinque. Always consider the following options first:
The following example shows an example IRuntimeHook implementation.
| sHookInfo | [in] The Hook Information what happened. |
| pObject | [in] Optional pointer to the object the Hook Event belongs to |
| ERR_CANCELED | The hook call will break and no further hook will be called. |