#include <DoBaseI.h>
Public Member Functions | |
virtual DynObjType *docall | doGetType (const DynI **pself=0) const |
Virtuals | |
Interface members | |
virtual MallocI *docall | GetMalloc () const |
virtual TextIoI *docall | GetTextIo () const |
virtual DynObj *docall | Create (const char *lib, const char *type, int type_id, const DynI *pdi_init=NULL) |
virtual int docall | GetLastErrCode (int thid=-1) |
virtual bool docall | GetLastErrStr (DynStr &ds, int thid=-1) |
virtual bool docall | SetLastError (int err_code, const char *err_msg) |
virtual int docall | GetThreadId () |
virtual DynObjType *docall | GetTypeOf (void **vtbl) |
virtual DynObjType *docall | FindTypeFromName (const char *type, const char *header=NULL) |
virtual DynObjType *docall | FindTypeFromId (int type_id) |
virtual DynI *docall | LoadLib (const char *lib_name, DynI *pdi_init) |
virtual bool docall | UnloadLib (const char *lib_name, bool force_unload) |
virtual DynObjLibI *docall | GetLib (const char *lib) |
virtual const char *docall | GetLoadError () |
virtual int docall | GenerateTypeId () |
virtual bool docall | SetObjectError (const void *pvo, const char *err_str, int err_code) |
virtual bool docall | ClearObjectError (const void *pvo) |
virtual const char *docall | GetObjectError (const void *pvo, int *perr_code) |
Inlines | |
Inline convenience functions | |
template<class T> | |
T * | Create (const DynI *pdi_init=NULL) |
bool | ObjectPublish (DynI *pdi, const char *name) |
DynI * | ObjectLookup (const char *name, int type_id=0) |
virtual DynObjType* docall DoRunTimeI::doGetType | ( | const DynI ** | pself = 0 |
) | const [virtual] |
Returns type of this object. Each type that wants to make itself known should override this method. DynI knows its own type so we get the type without any lookup. It is faster and works without registration.
pself | allows fetching the actual 'this' used inside doGetType (from a side base, this will be different to the 'this' of the caller). |
Reimplemented from DynI.
Reimplemented in DoRunTimeC.
virtual DynI* docall DoRunTimeI::LoadLib | ( | const char * | lib_name, | |
DynI * | pdi_init | |||
) | [inline, virtual] |
Returns NULL on success, otherwise error from library loader
Reimplemented in DoRunTimeC.
virtual bool docall DoRunTimeI::UnloadLib | ( | const char * | lib_name, | |
bool | force_unload | |||
) | [inline, virtual] |
Unloads a previously loaded library
virtual DynObjLibI* docall DoRunTimeI::GetLib | ( | const char * | lib | ) | [inline, virtual] |
Returns an owned library (for temporary use)
Reimplemented in DoRunTimeC.
T* DoRunTimeI::Create | ( | const DynI * | pdi_init = NULL |
) | [inline] |
Template wrapper for Create DynObj.
pdi_init | is the argument to the object constructor. |