basemessage.h

00001 /***************************************************************************
00002                           basemessage.h  -  description
00003                              -------------------
00004     begin                : mer avr 12 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 BASEMESSAGE_H
00020 #define BASEMESSAGE_H
00021 
00022 #include <string>
00023 #include <xml/XMLConstantNode.h>
00024 
00025 class XMLWriter;
00026 
00032 class BaseMessage
00033 {
00034 
00035 public:
00037   BaseMessage();
00038 
00040   virtual ~BaseMessage();
00041 
00043   virtual void processMessage() const = 0;
00044 
00048   virtual std::string toXMLString() const;
00049 
00053   virtual void toXML(XMLWriter& writer) const = 0;
00054 
00058   virtual std::string toString() const = 0;
00059   
00062   virtual BaseMessage& copy() const = 0;
00063 };
00064 
00065 #endif

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