Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Core - IO - Function Register


Function Pointer Register

Function pointers can be very useful, but cause problems when you want to load and save classes containing them. These methods create a database of function pointers mapped to unique identifiers which can be used to load and save these pointers safely.

Normal classes:

 RegisterFuncionC Save function pointer. Register function pointer.

Normal functions:

 RegisterFunction(const char *,DataT) Register function ptr.
 LookupFunctionByName(const char *,DataT &) Lookup function pointer by name.
 LookupFunctionByPointer(DataT &) Lookup function name by pointer.
 LoadFunctionPointer(BinIStreamC &,DataT &) Load function pointer.
 LoadFunctionPointer(istream &,DataT &) Load function pointer.
 SaveFunctionPointer(ostream &,DataT &) Save function pointer.
 SaveFunctionPointer(BinOStreamC &,const DataT &) Save function pointer. Register function pointer.

Develop functions:

 BaseFunctionRegister(const char *,void *,int,const type_info &) Register function pointer.
 BaseFunctionLookupByName(const char *,void *,int,const type_info &) Register function pointer.
 BaseFunctionLookupByPointer(void *,int,const type_info &) Lookup function by pointer.
Documentation by CxxDoc: Tue Aug 13 10:00:48 2002