bamboomessage.h

00001 /***************************************************************************
00002                           bamboomessage.h  -  description
00003                              -------------------
00004     begin                : mar avr 11 2006
00005 
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 
00018 #ifndef BAMBOOMESSAGE_H
00019 #define BAMBOOMESSAGE_H
00020 
00021 #include "basemessage.h"
00022 #include "messageheader.h"
00023 #include <string>
00024 
00025 
00033 class BambooMessage : public BaseMessage
00034 {
00035 public: //public method
00036 
00042   BambooMessage(MessageHeader* pHeader = 0, BaseMessage* pContent = 0);
00043 
00047   BambooMessage(const BambooMessage& bambooMsg);
00048 
00053   BambooMessage& operator=(const BambooMessage bambooMsg);
00054 
00059   void swap(const BambooMessage& bambooMsg);
00060 
00062   ~BambooMessage();
00063 
00068   void setHeader(const MessageHeader* pHeader) ;
00069 
00074   void setContent(const BaseMessage* pContent) ;
00075 
00080   const BaseMessage* getContent() const   {    return m_pContent;  }
00081 
00086   const MessageHeader* getHeader() const  {    return m_pHeader;  }
00087 
00092   void toXML(XMLWriter& writer) const;
00093 
00097   void processMessage() const;
00098 
00103   std::string toString() const;
00104 
00107   BambooMessage& copy() const;
00108 
00109 protected: //protected fields
00110 
00112   const BaseMessage* m_pContent;
00113 
00115   const MessageHeader* m_pHeader;
00116 };
00117 
00118 #endif

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