|
| | runtime () |
| |
| | runtime (const adtf::util::cCommandLine &oCommandline) |
| |
| const char * | GetRunLevelString (int8_t) const override |
| |
|
| 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 |
| |
| 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.
|
| |
| | ADTF_IID (IObject, "object.ant.ucom.adtf.iid") |
| |
|
| virtual | ~cRuntime () |
| |
|
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) |
| |
|
| ~IObject ()=default |
| | Protected destructor --> Only the final implementation can be destroyed!
|
| |
template<int8_t LAST_RUN_LEVEL>
class adtf::ucom::runtime< LAST_RUN_LEVEL >
Definition of a common level based runtime.
A Runtime of teh ucom is implemented as level state machine. Choose the LAST_RUN_LEVEL as the highest number of runlevel which can be reached. the implementation of cRuntime will increase and decrease the level from RL_Shutdown to LAST_RUN_LEVEL. A Service (IService) registered to the defined runlevel (IRuntime::RegisterObject) will be automatically initialized if the runlevel is reached.
- Template Parameters
-
| LAST_RUN_LEVEL | Highest runlevel of the runtime |