Collaboration diagram for Basic classes:
|
Files | |
| file | basicapp.h |
| Definition of the class BasicApp. | |
| file | basiclog.h |
| Definition of the class BasicLog. | |
| file | basicobject.h |
| Definition of the classes BasicObject and BasicSlot. | |
| file | basicthread.h |
| Definition of the class BasicThread. | |
Classes | |
| class | BasicApp |
| Basic functions to handle the application. More... | |
| class | BasicLog |
| Basic functions for debugging, using a log file. More... | |
| class | BasicSlot |
| Stores an event's slot (function pointer and name). More... | |
| class | BasicThread |
| Basic functions to handle threads. More... | |
Defines | |
| #define | DECLARE_SLOT(name, classname, func) static BasicSlot classname ## __ ## name(#name,#classname,func); |
| #define DECLARE_SLOT | ( | name, | |||
| classname, | |||||
| func | ) | static BasicSlot classname ## __ ## name(#name,#classname,func); |
Put this into your function, to be listed in the global function list.
| name | the function's name | |
| classname | the class | |
| func | the function to call |
BasicSlot::getFunction("func","MyFoo") will return a pointer to the function MyFoo::foofunc.
Then the header file looks like this:
... class MyFoo : public BasicObject { public: static void foofunc(void *a, BasicObject *b, void *c) { ... implementation ... } ... };
DECLARE_SLOT(func,MyFoo,MyFoo::foofunc)
1.5.1