QDP++
qdp_xmlio.h File Reference

XML IO support. More...

#include <string>
#include <sstream>
#include <stack>
#include <list>
#include <vector>
#include <map>
#include "xml_simplewriter.h"
#include "basic_xpath_reader.h"

Go to the source code of this file.

Classes

class  QDP::XMLReader
 XML reader class. More...
class  QDP::XMLWriter
 Metadata output class. More...
class  QDP::XMLBufferWriter
 Writes XML metadata to a buffer. More...
class  QDP::XMLFileWriter
 Writes XML metadata to a file. More...
class  QDP::XMLArrayWriter
 Writes metadata to an array which serves as a handle for another XML object. More...

Namespaces

namespace  QDP
 Yet another random number generator.

Functions

void QDP::read (XMLReader &xml, const std::string &s, std::string &input)
 Xpath query.
void QDP::read (XMLReader &xml, const std::string &s, char &input)
 Xpath query.
void QDP::read (XMLReader &xml, const std::string &s, int &input)
 Xpath query.
void QDP::read (XMLReader &xml, const std::string &s, unsigned int &input)
 Xpath query.
void QDP::read (XMLReader &xml, const std::string &s, short int &input)
 Xpath query.
void QDP::read (XMLReader &xml, const std::string &s, unsigned short int &input)
 Xpath query.
void QDP::read (XMLReader &xml, const std::string &s, long int &input)
 Xpath query.
void QDP::read (XMLReader &xml, const std::string &s, unsigned long int &input)
 Xpath query.
void QDP::read (XMLReader &xml, const std::string &s, float &input)
 Xpath query.
void QDP::read (XMLReader &xml, const std::string &s, double &input)
 Xpath query.
void QDP::read (XMLReader &xml, const std::string &s, bool &input)
 Xpath query.
void QDP::push (XMLWriter &xml, const std::string &s)
 Push a group name.
void QDP::pop (XMLWriter &xml)
 Pop a group name.
void QDP::write (XMLWriter &xml, const std::string &s, const XMLReader &d)
 Write something from a reader.
void QDP::write (XMLWriter &xml, const std::string &s, const XMLBufferWriter &d)
 Write something from a XMLBufferWriter.
void QDP::write (XMLWriter &xml, const std::string &s, const std::string &output)
 Write a opening tag, contents and a closing tag.
void QDP::write (XMLWriter &xml, const std::string &s, const char *output)
 Write a opening tag, contents and a closing tag.
void QDP::write (XMLWriter &xml, const std::string &s, const char &output)
 Write a opening tag, contents and a closing tag.
void QDP::write (XMLWriter &xml, const std::string &s, const int &output)
 Write a opening tag, contents and a closing tag.
void QDP::write (XMLWriter &xml, const std::string &s, const unsigned int &output)
 Write a opening tag, contents and a closing tag.
void QDP::write (XMLWriter &xml, const std::string &s, const short int &output)
 Write a opening tag, contents and a closing tag.
void QDP::write (XMLWriter &xml, const std::string &s, const unsigned short int &output)
 Write a opening tag, contents and a closing tag.
void QDP::write (XMLWriter &xml, const std::string &s, const long int &output)
 Write a opening tag, contents and a closing tag.
void QDP::write (XMLWriter &xml, const std::string &s, const unsigned long int &output)
 Write a opening tag, contents and a closing tag.
void QDP::write (XMLWriter &xml, const std::string &s, const float &output)
 Write a opening tag, contents and a closing tag.
void QDP::write (XMLWriter &xml, const std::string &s, const double &output)
 Write a opening tag, contents and a closing tag.
void QDP::write (XMLWriter &xml, const std::string &s, const bool &output)
 Write a opening tag, contents and a closing tag.
void QDP::push (XMLArrayWriter &xml)
 Push a group name.
void QDP::pop (XMLArrayWriter &xml)
 Pop a group name.
template<class T>
void QDP::read (XMLReader &xml, const std::string &s, multi1d< T > &input)
 Read a XML multi1d element.
template<>
void QDP::read (XMLReader &xml, const std::string &s, multi1d< int > &input)
template<>
void QDP::read (XMLReader &xml, const std::string &s, multi1d< unsigned int > &input)
template<>
void QDP::read (XMLReader &xml, const std::string &s, multi1d< short int > &input)
template<>
void QDP::read (XMLReader &xml, const std::string &s, multi1d< unsigned short int > &input)
template<>
void QDP::read (XMLReader &xml, const std::string &s, multi1d< long int > &input)
template<>
void QDP::read (XMLReader &xml, const std::string &s, multi1d< unsigned long int > &input)
template<>
void QDP::read (XMLReader &xml, const std::string &s, multi1d< float > &input)
template<>
void QDP::read (XMLReader &xml, const std::string &s, multi1d< double > &input)
template<>
void QDP::read (XMLReader &xml, const std::string &s, multi1d< bool > &input)
template<class T>
void QDP::read (XMLReader &xml, const std::string &s, std::vector< T > &input)
 Read a XML Array element.
void QDP::read (XMLReader &xml, const std::string &xpath, std::vector< int > &result)
 Read a XML Array element.
void QDP::read (XMLReader &xml, const std::string &xpath, std::vector< unsigned int > &result)
void QDP::read (XMLReader &xml, const std::string &xpath, std::vector< short int > &result)
void QDP::read (XMLReader &xml, const std::string &xpath, std::vector< unsigned short int > &result)
void QDP::read (XMLReader &xml, const std::string &xpath, std::vector< long int > &result)
void QDP::read (XMLReader &xml, const std::string &xpath, std::vector< unsigned long int > &result)
void QDP::read (XMLReader &xml, const std::string &xpath, std::vector< float > &result)
void QDP::read (XMLReader &xml, const std::string &xpath, std::vector< double > &result)
template<class T>
void QDP::read (XMLReader &xml, const std::string &s, std::list< T > &input)
 Read a XML Array element.
void QDP::read (XMLReader &xml, const std::string &xpath, std::list< int > &result)
 Read a XML list element.
void QDP::read (XMLReader &xml, const std::string &xpath, std::list< unsigned int > &result)
void QDP::read (XMLReader &xml, const std::string &xpath, std::list< short int > &result)
void QDP::read (XMLReader &xml, const std::string &xpath, std::list< unsigned short int > &result)
void QDP::read (XMLReader &xml, const std::string &xpath, std::list< long int > &result)
void QDP::read (XMLReader &xml, const std::string &xpath, std::list< unsigned long int > &result)
void QDP::read (XMLReader &xml, const std::string &xpath, std::list< float > &result)
void QDP::read (XMLReader &xml, const std::string &xpath, std::list< double > &result)
template<class T>
void QDP::read (XMLReader &xml, const std::string &s, Array1dO< T > &input)
 Read a XML Array1dO element.
template<typename K, typename V>
void QDP::read (XMLReader &xml, const std::string &s, std::map< K, V > &input)
 Read a XML Array element.
template<typename T1, typename T2>
void QDP::read (XMLReader &xml, const std::string &s, std::pair< T1, T2 > &input)
 Read a XML Array element.
XMLWriterQDP::operator<< (XMLWriter &xml, const XMLReader &d)
XMLWriterQDP::operator<< (XMLWriter &xml, const XMLBufferWriter &d)
XMLWriterQDP::operator<< (XMLWriter &xml, const std::string &d)
XMLWriterQDP::operator<< (XMLWriter &xml, const char *d)
XMLWriterQDP::operator<< (XMLWriter &xml, const char &d)
XMLWriterQDP::operator<< (XMLWriter &xml, const int &d)
XMLWriterQDP::operator<< (XMLWriter &xml, const unsigned int &d)
XMLWriterQDP::operator<< (XMLWriter &xml, const short int &d)
XMLWriterQDP::operator<< (XMLWriter &xml, const unsigned short int &d)
XMLWriterQDP::operator<< (XMLWriter &xml, const long int &d)
XMLWriterQDP::operator<< (XMLWriter &xml, const unsigned long int &d)
XMLWriterQDP::operator<< (XMLWriter &xml, const float &d)
XMLWriterQDP::operator<< (XMLWriter &xml, const double &d)
XMLWriterQDP::operator<< (XMLWriter &xml, const bool &d)
template<class T>
void QDP::write (XMLWriter &xml, const std::string &s, const multi1d< T > &s1)
 Write a opening tag, array contents and a closing tag.
template<>
void QDP::write (XMLWriter &xml, const std::string &s, const multi1d< int > &output)
 Writes an array of data.
template<>
void QDP::write (XMLWriter &xml, const std::string &s, const multi1d< unsigned int > &output)
 Writes an array of data.
template<>
void QDP::write (XMLWriter &xml, const std::string &s, const multi1d< short int > &output)
 Writes an array of data.
template<>
void QDP::write (XMLWriter &xml, const std::string &s, const multi1d< unsigned short int > &output)
 Writes an array of data.
template<>
void QDP::write (XMLWriter &xml, const std::string &s, const multi1d< long int > &output)
 Writes an array of data.
template<>
void QDP::write (XMLWriter &xml, const std::string &s, const multi1d< unsigned long int > &output)
 Writes an array of data.
template<>
void QDP::write (XMLWriter &xml, const std::string &s, const multi1d< float > &output)
 Writes an array of data.
template<>
void QDP::write (XMLWriter &xml, const std::string &s, const multi1d< double > &output)
 Writes an array of data.
template<>
void QDP::write (XMLWriter &xml, const std::string &s, const multi1d< bool > &output)
 Writes an array of data.
template<class RHS, class C>
void QDP::write (XMLWriter &xml, const std::string &s, const QDPExpr< RHS, C > &d)
 Write an expression.
template<class T>
void QDP::write (XMLWriter &xml, const std::string &s, const OScalar< T > &d)
 XML OScalar output.
template<class T>
void QDP::write (XMLWriter &xml, const std::string &s, const OLattice< T > &d)
 XML OLattice output.
template<class T>
void QDP::write (XMLWriter &xml, const std::string &s, const std::vector< T > &s1)
 Write a XML vector element.
void QDP::write (XMLWriter &xml, const std::string &xpath, const std::vector< int > &output)
void QDP::write (XMLWriter &xml, const std::string &xpath, const std::vector< unsigned int > &output)
void QDP::write (XMLWriter &xml, const std::string &xpath, const std::vector< short int > &output)
void QDP::write (XMLWriter &xml, const std::string &xpath, const std::vector< unsigned short int > &output)
void QDP::write (XMLWriter &xml, const std::string &xpath, const std::vector< long int > &output)
void QDP::write (XMLWriter &xml, const std::string &xpath, const std::vector< unsigned long int > &output)
template<>
void QDP::write (XMLWriter &xml, const std::string &s, const std::vector< float > &s1)
template<>
void QDP::write (XMLWriter &xml, const std::string &s, const std::vector< double > &s1)
void QDP::write (XMLWriter &xml, const std::string &xpath, const std::vector< bool > &output)
template<class T>
void QDP::write (XMLWriter &xml, const std::string &s, const std::list< T > &s1)
 Write a XML list element.
void QDP::write (XMLWriter &xml, const std::string &xpath, const std::list< int > &output)
void QDP::write (XMLWriter &xml, const std::string &xpath, const std::list< unsigned int > &output)
void QDP::write (XMLWriter &xml, const std::string &xpath, const std::list< short int > &output)
void QDP::write (XMLWriter &xml, const std::string &xpath, const std::list< unsigned short int > &output)
void QDP::write (XMLWriter &xml, const std::string &xpath, const std::list< long int > &output)
void QDP::write (XMLWriter &xml, const std::string &xpath, const std::list< unsigned long int > &output)
template<>
void QDP::write (XMLWriter &xml, const std::string &s, const std::list< float > &s1)
template<>
void QDP::write (XMLWriter &xml, const std::string &s, const std::list< double > &s1)
void QDP::write (XMLWriter &xml, const std::string &xpath, const std::list< bool > &output)
template<class T>
void QDP::write (XMLWriter &xml, const std::string &s, const Array1dO< T > &s1)
 Write a XML Array1dO element.
template<typename K, typename V>
void QDP::write (XMLWriter &xml, const std::string &path, const std::map< K, V > &param)
 Write a map.
template<typename T1, typename T2>
void QDP::write (XMLWriter &xml, const std::string &path, const std::pair< T1, T2 > &param)
 Write a pair.

Detailed Description

XML IO support.

Definition in file qdp_xmlio.h.