Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

KoduEventBase.h

Go to the documentation of this file.
00001 #ifndef _INCLUDE_KoduEventBase_h_
00002 #define _INCLUDE_KoduEventBase_h_
00003 
00004 #include "Events/EventBase.h"
00005 
00006 class KoduEventBase : public EventBase {
00007  protected:
00008   int _destID;
00009 
00010  public:
00011   static const char* classID;
00012 
00013   static KoduEventBase* getInstance(const char buf[], unsigned int size);
00014 
00015   KoduEventBase() : EventBase(koduEGID, (size_t)-1, statusETID), _destID(-1) {}
00016 
00017   ~KoduEventBase() {};
00018 
00019   int getDestination();
00020   void setDestination(int destID);
00021 
00022   virtual std::string getDescription(bool showTypeSpecific, unsigned int verbosity) const;
00023   virtual unsigned int getBinSize() const;
00024   virtual unsigned int saveBinaryBuffer(char buf[], unsigned int len) const;
00025   virtual unsigned int loadBinaryBuffer(const char buf[], unsigned int len);
00026         
00027 };
00028 
00029 /*! @file
00030  *
00031  * @brief Events involved with the Kodu Interpreter
00032  *
00033  * @author afranchu
00034  * @author medee
00035  */
00036 
00037 #endif

Tekkotsu v5.1CVS
Generated Mon May 9 04:58:43 2016 by Doxygen 1.6.3