VRUT::KernelModule Class Reference

Module with access to kernel. More...

#include <kernelmodule.h>

Inheritance diagram for VRUT::KernelModule:

VRUT::Module VRUT::JSScriptingModule

List of all members.

Public Member Functions

 KernelModule (const MODULE_ID &_id, const wxString &_name, unsigned _type, EventHandler *msgSink)
 Class constructor.
virtual ~KernelModule ()
 Class destructor.
void SetKernel (Kernel *_kernel)
 Set kernel - should be set before module's thread is started.

Protected Member Functions

virtual void kernelRun ()=0
 Method will be run every main application loop iteration in main thread.

Protected Attributes

Kernelkernel
 Pointer to application kernel.

Friends

class EventHandler


Detailed Description

Module with access to kernel.

Definition at line 21 of file kernelmodule.h.


Constructor & Destructor Documentation

VRUT::KernelModule::KernelModule ( const MODULE_ID _id,
const wxString &  _name,
unsigned  _type,
EventHandler msgSink 
) [inline]

Class constructor.

Definition at line 32 of file kernelmodule.h.

00033                             : Module(_id, _name, (_type | MODULE_TYPE_KERNEL), msgSink),
00034                             kernel((Kernel *)NULL)
00035               {
00036               }

virtual VRUT::KernelModule::~KernelModule (  )  [inline, virtual]

Class destructor.

Definition at line 39 of file kernelmodule.h.

00039 {}


Member Function Documentation

virtual void VRUT::KernelModule::kernelRun (  )  [protected, pure virtual]

Method will be run every main application loop iteration in main thread.

Implemented in VRUT::JSScriptingModule.

void VRUT::KernelModule::SetKernel ( Kernel _kernel  )  [inline]

Set kernel - should be set before module's thread is started.

Definition at line 42 of file kernelmodule.h.

00043               {
00044                      kernel = _kernel;
00045               }


Friends And Related Function Documentation

friend class EventHandler [friend]

Definition at line 47 of file kernelmodule.h.


Member Data Documentation

Pointer to application kernel.

Definition at line 25 of file kernelmodule.h.


The documentation for this class was generated from the following file:

Generated on Tue Mar 10 14:41:43 2009 for VRUT by  doxygen 1.5.5