PilotEvent.h
Go to the documentation of this file.00001
00002 #ifndef INCLUDED_PilotEvent_h_
00003 #define INCLUDED_PilotEvent_h_
00004
00005 #include <iostream>
00006
00007 #include "EventBase.h"
00008
00009 #include "Crew/PilotRequest.h"
00010 #include "Crew/PilotTypes.h"
00011
00012 using namespace DualCoding::PilotTypes;
00013
00014
00015 class PilotEvent : public EventBase {
00016 public:
00017
00018 RequestType_t requestType;
00019 ErrorType_t errorType;
00020
00021 virtual RequestType_t getRequestType() const { return requestType; }
00022 virtual ErrorType_t getErrorType() const { return errorType; }
00023
00024
00025 PilotEvent() : EventBase(), requestType(), errorType(noError) {}
00026
00027
00028 PilotEvent(EventGeneratorID_t gid, size_t sid, EventTypeID_t tid, unsigned int dur=0)
00029 : EventBase(gid,sid,tid,dur), requestType(), errorType(noError) {}
00030
00031 virtual EventBase* clone() const { return new PilotEvent(*this); }
00032
00033 PilotEvent(const PilotEvent &other) :
00034 EventBase(other), requestType(other.requestType), errorType(other.errorType) {}
00035
00036 };
00037
00038 #endif