event.h

00001 /***************************************************************************
00002                           event.h  -  description
00003                              -------------------
00004     begin                : lun avr 24 2006
00005     copyright            : (C) 2006 by Sylvain Archenault <sylvain.archenault@laposte.net> Yves Houpert <yves.houpert@insa-rouen.fr>
00006  
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 #ifndef EVENT_H
00018 #define EVENT_H
00019 
00020 #include <Message/basemessage.h>
00021 
00027 class Event : public BaseMessage
00028 {
00029 public: //public members.
00030 
00033   Event(const int eventID = -1);
00034 
00036   ~Event();
00037 
00040   const int getEventID() const { return m_iEventID; }
00041 
00044   void setEventID(const int eventID) { m_iEventID = eventID; }
00045 
00049   virtual void processMessage() const = 0;
00050 
00054   void toXML(XMLWriter&) const;
00055 
00059   virtual void toXMLExt(XMLWriter&) const = 0;
00060 
00065   virtual std::string toString() const;
00066 
00067 private: //private members
00069   int m_iEventID;
00070 
00071 public: //public members
00072 
00074   static const char* EVENT_ROOT;
00075 
00080   static const char* CONTACTID_ATTR;
00085   static const char* STATE_ATTR;
00086 
00091   static const char* ID_ATTR;
00092 
00094   static const char* PARAM_NODE;
00095 
00096 };
00097 
00098 #endif

Generated on Fri May 19 12:15:54 2006 for Bamboo Ch@t by  doxygen 1.4.6