Description

MicroXML Very simple XML-Parser

Namespaces

   
namespace Util::MicroXML::Reader

Typedefs

   
   
typedef std::unordered_map< std::string, std::string > attributes_t
   
typedef std::function< bool(const std::string &, const attributes_t &)> visitor_enter_t
   
typedef std::function< bool(const std::string &)> visitor_leave_t
   
typedef std::function< bool(const std::string &, const std::string &)> visitor_data_t

Documentation

typedef
Util::MicroXML::attributes_t

public
 
 
typedef std::unordered_map< std::string, std::string > attributes_t

Defined in Util/MicroXML.h:28


typedef
Util::MicroXML::visitor_enter_t

public
 
 
typedef std::function< bool(const std::string &, const attributes_t &)> visitor_enter_t

Type of function that is called when a tag is entered.

Parameters

tagName
The name of the tag that is entered.
attributes
A map of the tag’s attributes.

Returns

Iftrue, the traversal should continue. Iffalse, the traversal should stop.

Defined in Util/MicroXML.h:38


typedef
Util::MicroXML::visitor_leave_t

public
 
 
typedef std::function< bool(const std::string &)> visitor_leave_t

Type of function that is called when a tag is left.

Parameters

tagName
The name of the tag that is left.

Returns

Iftrue, the traversal should continue. Iffalse, the traversal should stop.

Defined in Util/MicroXML.h:47


typedef
Util::MicroXML::visitor_data_t

public
 
 
typedef std::function< bool(const std::string &, const std::string &)> visitor_data_t

Type of function that is called when data is read.

Parameters

tagName
The name of the tag that contains the data.
data
The data that has been read.

Returns

Iftrue, the traversal should continue. Iffalse, the traversal should stop.

Defined in Util/MicroXML.h:57