Collaboration diagram for gadget::Callable:

Public Methods | |
| Callable (gadget::InputManager *inputMgr) | |
| bool | operator() (void *func) |
| This will be invoked as a callback by methods of vpr::LibraryLoader. More... | |
Public Attributes | |
| gadget::InputManager * | mgr |
An instance can be passed in where a boost::function1<bool, void*> is expected. In gadget::InputManager::configAdd(), instances are used to handle dynamic loading of device drivers via vpr::LibraryLoader.
Definition at line 108 of file InputManager.cpp.
|
|
Definition at line 110 of file InputManager.cpp. References mgr.
00110 : mgr(inputMgr) 00111 { 00112 } |
|
|
This will be invoked as a callback by methods of vpr::LibraryLoader.
Definition at line 121 of file InputManager.cpp.
00122 {
00123 void (*init_func)(InputManager*);
00124
00125 // Cast the entry point function to the correct signature so that we can
00126 // call it. All dynamically loaded drivers must have an entry point
00127 // function that takes a pointer to a gadget::InputManager instance and
00128 // returns nothing.
00129 init_func = (void (*)(InputManager*)) func;
00130
00131 // Call the entry point function.
00132 (*init_func)(mgr);
00133
00134 return true;
00135 }
|
|
|
Definition at line 137 of file InputManager.cpp. Referenced by Callable. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002