00001 /* 00002 * $Id: h,v 1.1 2008-04-08 21:28:30 kybav1 Exp $ 00003 * 00004 * Description : One line description of file. 00005 * Author : Vaclav Kyba <mail/Jabber: vaseo1@gmail.com> <ICQ: 98576293> 00006 * 00007 * Purpose : 00008 * Long description of what the file is for. 00009 */ 00010 00011 #ifndef __KERNELMODULE_H__ 00012 #define __KERNELMODULE_H__ 00013 00014 #include "module.h" 00015 #include "kernel.h" 00016 00017 00018 namespace VRUT 00019 { 00021 class KernelModule : public Module 00022 { 00023 protected: 00025 Kernel * kernel; 00026 00028 virtual void kernelRun() = 0; 00029 00030 public: 00032 KernelModule(const MODULE_ID & _id, const wxString & _name, unsigned _type, EventHandler * msgSink) 00033 : Module(_id, _name, (_type | MODULE_TYPE_KERNEL), msgSink), 00034 kernel((Kernel *)NULL) 00035 { 00036 } 00037 00039 virtual ~KernelModule() {} 00040 00042 void SetKernel(Kernel * _kernel) 00043 { 00044 kernel = _kernel; 00045 } 00046 00047 friend class EventHandler; 00048 }; 00049 }; 00050 00051 00052 #endif // __KERNELMODULE_H__
1.5.5