00001 /*************************************************************************** 00002 ecoute.h - description 00003 ------------------- 00004 begin : mer mar 22 2006 00005 copyright : (C) 2006 by 00006 - Sylvain Archenault <sylvain.archenault@laposte.net> 00007 - Yves Houpert <yves.houpert@insa-rouen.fr> 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 ECOUTE_H 00020 #define ECOUTE_H 00021 00022 #include <xml/xmlparser.h> 00023 class BaseMessage; 00024 00030 class Ecoute 00031 { 00032 public: 00034 Ecoute(); 00035 00037 ~Ecoute(); 00038 00043 BaseMessage* readMessage(const std::string& xmlMessage); 00044 00049 bool isParsingError() const { return m_Parser.getParsingError(); } 00050 00055 SAXParseException* getParsingException() const { return m_Parser.getParsingException(); } 00056 00057 private: //Protected member 00059 XMLParser m_Parser; 00060 }; 00061 00062 #endif
1.4.6