IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

XmlParser Class Reference

A Xml parser //! More...

#include <xmlparser.hpp>

List of all members.

Public Member Functions

 XmlParser ()
bool parse (const QString &xmlData)
 Parsing method from a string. //!
bool parse (QFile &xmlFile)
 Parsing method from a file. //!
QString lastError () const
 Last error retrieving method. //!
void clearLastError ()
 Method to clear the last error. //!

Protected Attributes

QString m_lastError
 String descripting the last error that occured.

Detailed Description

A Xml parser //!

This parser is used to parse a string or a file containing Xml. The main method to use is the parse() methode, which take the Xml string or file.

Definition at line 40 of file xmlparser.hpp.


Constructor & Destructor Documentation

QE_BEGIN_NAMESPACE XmlParser::XmlParser (  ) 

Definition at line 25 of file xmlparser.cpp.


Member Function Documentation

void XmlParser::clearLastError (  ) 

Method to clear the last error. //!

This method clears the last error string

Definition at line 106 of file xmlparser.cpp.

QString XmlParser::lastError (  )  const

Last error retrieving method. //!

Returns:
Return the string describing the last error that occured

Definition at line 101 of file xmlparser.cpp.

bool XmlParser::parse ( const QString &  xmlData  ) 

Parsing method from a string. //!

Main method of the XmlParser class, it parse a Xml string.

Parameters:
xmlData String containing the Xml to parse
Returns:
Return a boolean to know if an error occured while parsing

Definition at line 34 of file xmlparser.cpp.

bool XmlParser::parse ( QFile &  xmlFile  ) 

Parsing method from a file. //!

Main method of the XmlParser class, it parse a Xml file. The file must have an authorized extension.

Parameters:
xmlFile File containing the Xml to parse
Returns:
Return a boolean to know if an error occured while parsing

Definition at line 54 of file xmlparser.cpp.


Member Data Documentation

QString XmlParser::m_lastError [protected]

String descripting the last error that occured.

Definition at line 49 of file xmlparser.hpp.


The documentation for this class was generated from the following files:

Les sources présentées sur cette page sont libres de droits et vous pouvez les utiliser à votre convenance. Par contre, la page de présentation constitue une œuvre intellectuelle protégée par les droits d'auteur. Copyright © 2010 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site ni de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon vous encourez selon la loi jusqu'à trois ans de prison et jusqu'à 300 000 € de dommages et intérêts.