include/xmlutils/xmlparser.h

Go to the documentation of this file.
00001 
00002 // Name:        xmlparser.h
00003 // Purpose:     Anthemion XML parser utilities
00004 // Author:      Julian Smart
00005 // Modified by:
00006 // Created:     2008-11-18
00007 // RCS-ID:      $Id$
00008 // Copyright:   (c) Julian Smart
00009 // Licence:     New BSD License
00011 
00012 #ifndef __XMLPARSERH__
00013 #define __XMLPARSERH__
00014 
00021 class wxXmlNode;
00022 
00023 class wxXMLParser
00024 {
00025 public:
00026 
00027     wxXMLParser() { Init(); }
00028     void Init() {}
00029 
00031     bool HasParam(wxXmlNode *node, const wxString& param);
00032 
00034     wxXmlNode *GetParamNode(wxXmlNode *node, const wxString& param);
00035     
00037     wxString GetNodeContent(wxXmlNode *node);
00038 
00040     wxString GetParamValue(wxXmlNode *node, const wxString& param);
00041 
00042     // Gets text from param and does some conversions:
00046     wxString GetText(wxXmlNode *node, const wxString& param);
00047 
00049     wxArrayString FindValues(wxXmlNode* node, const wxString& tag);
00050 
00051 protected:
00052 };
00053 
00054 #endif
00055     // __XMLPARSERH__

Generated on Wed May 6 19:20:19 2009 for AxTk by  doxygen 1.5.1