00001 /*************************************************************************** 00002 ulxr_valueparse.h - parse xml-rpc primitive values 00003 ------------------- 00004 begin : Wed Mar 13 2002 00005 copyright : (C) 2002-2007 by Ewald Arnold 00006 email : ulxmlrpcpp@ewald-arnold.de 00007 00008 $Id: ulxr_valueparse.h 940 2006-12-30 18:22:05Z ewald-arnold $ 00009 00010 ***************************************************************************/ 00011 00012 /************************************************************************** 00013 * 00014 * This program is free software; you can redistribute it and/or modify 00015 * it under the terms of the GNU Lesser General Public License as 00016 * published by the Free Software Foundation; either version 2 of the License, 00017 * or (at your option) any later version. 00018 * 00019 * This program is distributed in the hope that it will be useful, 00020 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 * GNU General Public License for more details. 00023 * 00024 * You should have received a copy of the GNU Lesser General Public License 00025 * along with this program; if not, write to the Free Software 00026 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00027 * 00028 ***************************************************************************/ 00029 00030 #ifndef ULXR_VALUEPARSE_H 00031 #define ULXR_VALUEPARSE_H 00032 00033 #include <ulxmlrpcpp/ulxmlrpcpp.h> // always first header 00034 00035 #include <ulxmlrpcpp/ulxr_xmlparse.h> 00036 #include <ulxmlrpcpp/ulxr_valueparse_base.h> 00037 00038 #include <stack> 00039 00040 00041 namespace ulxr { 00042 00043 00055 class ULXR_API_DECL0 ValueParser : public ValueParserBase, 00056 public XmlParser 00057 { 00058 public: 00059 00062 ValueParser(); 00063 00066 virtual ~ValueParser(); 00067 00068 protected: 00069 00075 virtual void startElement(const XML_Char *name, 00076 const XML_Char **atts); 00077 00082 virtual void endElement(const XML_Char* name); 00083 00090 bool testStartElement(const XML_Char *name, const XML_Char **atts); 00091 00097 bool testEndElement(const XML_Char *name); 00098 00102 ValueState *getTopValueState() const; 00103 }; 00104 00105 00106 } // namespace ulxr 00107 00108 00109 #endif // ULXR_VALUEPARSE_H