herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
XML::ElementIO Class Reference

ElementIO handles in/output of XML elements. More...

#include <ElementIO.h>

Classes

struct  Tag
 Helper struct representing a single tag or parsed content. More...
 

Static Public Member Functions

template<class OStream >
static void put (Element, OStream &)
 Write a tree to an ostream.
 
static Element get (std::istream &)
 Get the next element from a stream.
 
static Element getAll (std::istream &)
 Parse the entire stream.
 

Static Private Member Functions

static void strip (std::string &, const std::string &skip="\ ")
 Strip whitespaces from a string.
 
static std::istream & getline (std::istream &, std::string &, const std::string &)
 Read from istream until occurence of the given pattern.
 
static void skip (std::istream &, const std::string &skip_chars="\ ")
 Skip charecters encountered on the given istream.
 
static void getTag (Tag &, std::istream &)
 Get a single tag or parsed content from an istream.
 
static Element produce (std::list< Tag > &)
 Produce element tree from parsed stack of tags.
 
static void produce (std::list< Tag > &, Element &)
 Produce element tree from parsed stack of tags.
 
static void unexpectedEOF (const std::string &what="")
 Throw an unexpected end of file exception.
 
static void parseError (const std::string &what="")
 Throw a parse error exception.
 

Detailed Description

ElementIO handles in/output of XML elements.

Author
Simon Platzer

Definition at line 22 of file ElementIO.h.


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