messageheader.h

00001 /***************************************************************************
00002                           messageheader.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 MESSAGEHEADER_H
00020 #define MESSAGEHEADER_H
00021 
00022 #include "basemessage.h"
00023 #include <string>
00024 #include <sstream>
00025 #include <ostream>
00026 
00032 class MessageHeader : public BaseMessage
00033 {
00034 public:
00038   MessageHeader(int sessionID=0);
00039 
00041   ~MessageHeader();
00042 
00046   void toXML(XMLWriter& writer) const;
00047 
00049   void processMessage() const;
00050 
00054   void setSessionID(int sessionID) { m_iSessionID = sessionID; }
00055 
00059   int getSessionID() const { return m_iSessionID; }
00060 
00064   std::string toString() const ;
00065 
00068   MessageHeader& copy() const;
00069 
00070 protected:
00072   int m_iSessionID;
00073 };
00074 
00075 #endif

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