request.h

00001 /***************************************************************************
00002                           request.h  -  description
00003                              -------------------
00004     begin                : mar avr 11 2006
00005     copyright            : (C) 2006 by Sylvain Archenault <sylvain.archenault@laposte.net>
00006                                        Yves Houpert <yves.houpert@insa-rouen.fr>
00007 
00008  ***************************************************************************/
00009 
00010 /***************************************************************************
00011  *                                                                         *
00012  *   This program is free software; you can redistribute it and/or modify  *
00013  *   it under the terms of the GNU General Public License as published by  *
00014  *   the Free Software Foundation; either version 2 of the License, or     *
00015  *   (at your option) any later version.                                   *
00016  *                                                                         *
00017  ***************************************************************************/
00018 
00019 #ifndef REQUEST_H
00020 #define REQUEST_H
00021 
00022 #include <Message/basemessage.h>
00023 
00029 class Request : public BaseMessage
00030 {
00031 public:
00035   Request( const int requestID);
00036 
00040   virtual ~Request();
00041 
00043   void processMessage() const {};
00044 
00047   int getRequestID() const { return m_iRequestID; }
00048 
00051   void setRequestID(const int requestID) { m_iRequestID = requestID; }
00052 
00056   void toXML(XMLWriter& writer) const;
00057 
00061   virtual void toXMLExt(XMLWriter& writer) const = 0;
00062 
00066   virtual std::string toString() const ;
00067 
00068 public: //public members
00070   static const char* ID_ATTR;
00071 
00073   static const char* PARAM_NODE;
00074 
00075 private: //private members
00077   int m_iRequestID;
00078 
00079 };
00080 
00081 #endif

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