Basic classes

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);

Detailed Description

Version:
0.8
Todo:
have to think about it...
Author:
Tobias Nadler (nadlerto at gmx dot de)
The Basic* files support classes for handling very basic things like logging and comfortable handling of the application and threads

Define Documentation

#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.

Parameters:
name the function's name
classname the class
func the function to call
Here an example:

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 ...
    }
...
};
And the source file contains a line like this:
 DECLARE_SLOT(func,MyFoo,MyFoo::foofunc) 


Generated on Wed May 9 17:36:09 2007 for netrinjo by  doxygen 1.5.1