00001
00002 #ifndef INCLUDED_ButtonEvent_h_
00003 #define INCLUDED_ButtonEvent_h_
00004
00005 #include "EventBase.h"
00006
00007
00008 class ButtonEvent : public EventBase {
00009 public:
00010
00011
00012
00013 ButtonEvent() : EventBase() {}
00014 ButtonEvent(unsigned int sid, EventTypeID_t tid, unsigned int dur, float mag) : EventBase(buttonEGID,sid,tid) { setDuration(dur); setMagnitude(mag); }
00015 virtual ~ButtonEvent() {}
00016
00017
00018 virtual std::string getDescription(bool showTypeSpecific=true, unsigned int verbosity=0) const;
00019
00020
00021
00022 virtual unsigned int getBinSize() const;
00023 virtual unsigned int LoadBuffer(const char buf[], unsigned int len);
00024 virtual unsigned int SaveBuffer(char buf[], unsigned int len) const;
00025
00026 protected:
00027 virtual void genName();
00028 };
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #endif