|
QDP++
|
Metadata output class. More...
#include <qdp_xmlio.h>
Public Member Functions | |
| XMLWriter () | |
| virtual | ~XMLWriter () |
| virtual void | openSimple (const std::string &tagname) |
| Writes an opening XML tag. | |
| virtual void | closeSimple () |
| virtual void | openStruct (const std::string &tagname) |
| Writes an opening XML tag. | |
| virtual void | closeStruct () |
| void | openTag (const std::string &tagname) |
| Writes an opening XML tag. | |
| void | openTag (const std::string &nsprefix, const std::string &tagname) |
| Writes an opening XML tag. | |
| void | openTag (const std::string &tagname, XMLWriterAPI::AttributeList &al) |
| Writes an opening XML tag. | |
| void | openTag (const std::string &nsprefix, const std::string &tagname, XMLWriterAPI::AttributeList &al) |
| Writes an opening XML tag. | |
| void | closeTag () |
| Closes a tag. | |
| void | emptyTag (const std::string &tagname) |
| Writes an empty tag. | |
| void | emptyTag (const std::string &nsprefix, const std::string &tagname) |
| Writes an empty tag. | |
| void | emptyTag (const std::string &tagname, XMLWriterAPI::AttributeList &al) |
| Writes an empty tag. | |
| void | emptyTag (const std::string &nsprefix, const std::string &tagname, XMLWriterAPI::AttributeList &al) |
| Writes an empty tag. | |
| void | write (const std::string &output) |
| Write tag contents. | |
| void | write (const int &output) |
| Write tag contents. | |
| void | write (const unsigned int &output) |
| Write tag contents. | |
| void | write (const short int &output) |
| Write tag contents. | |
| void | write (const unsigned short int &output) |
| Write tag contents. | |
| void | write (const long int &output) |
| Write tag contents. | |
| void | write (const unsigned long int &output) |
| Write tag contents. | |
| void | write (const float &output) |
| Write tag contents. | |
| void | write (const double &output) |
| Write tag contents. | |
| void | write (const bool &output) |
| Write tag contents. | |
| void | writeXML (const std::string &output) |
Friends | |
| class | XMLArrayWriter |
Metadata output class.
Use this to write XML.When closing tags, you do not have to specify which tag to close since this class will remember the order in which you opened the tags and close them in reverse order to ensure well-formed XML.
Note that only the primary node writes XML.
Definition at line 505 of file qdp_xmlio.h.
| QDP::XMLWriter::XMLWriter | ( | ) |
Definition at line 608 of file qdp_xmlio.cc.
Referenced by QDP::XMLArrayWriter::XMLArrayWriter().
|
virtual |
Definition at line 612 of file qdp_xmlio.cc.
|
virtual |
Definition at line 621 of file qdp_xmlio.cc.
References closeTag().
|
virtual |
Reimplemented in QDP::XMLArrayWriter.
Definition at line 631 of file qdp_xmlio.cc.
References closeTag().
Referenced by QDP::pop().
| void QDP::XMLWriter::closeTag | ( | ) |
Closes a tag.
Definition at line 662 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
Referenced by QDP::XMLArrayWriter::closeArray(), closeSimple(), QDP::XMLArrayWriter::closeStruct(), closeStruct(), QDP::operator<<(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::writeArrayPrimitive(), QDP::writeListPrimitive(), QDP::writePrimitive(), and QDP::writeVectorPrimitive().
| void QDP::XMLWriter::emptyTag | ( | const std::string & | nsprefix, |
| const std::string & | tagname ) |
Writes an empty tag.
| nsprefix | A namespace prefix for the tag |
| tagname | The name of the tag |
| void QDP::XMLWriter::emptyTag | ( | const std::string & | nsprefix, |
| const std::string & | tagname, | ||
| XMLWriterAPI::AttributeList & | al ) |
Writes an empty tag.
| nsprefix | A namespace prefix for the tag |
| tagname | The name of the tag |
| al | A list of attributes for this tag |
Definition at line 679 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
| void QDP::XMLWriter::emptyTag | ( | const std::string & | tagname | ) |
Writes an empty tag.
| tagname | The name of the tag |
Definition at line 668 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
| void QDP::XMLWriter::emptyTag | ( | const std::string & | tagname, |
| XMLWriterAPI::AttributeList & | al ) |
Writes an empty tag.
| tagname | The name of the tag |
| al | A list of attributes for this tag |
Definition at line 673 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
|
virtual |
Writes an opening XML tag.
| tagname | The name of the tag |
Definition at line 616 of file qdp_xmlio.cc.
References openTag().
|
virtual |
Writes an opening XML tag.
| tagname | The name of the tag |
Reimplemented in QDP::XMLArrayWriter.
Definition at line 626 of file qdp_xmlio.cc.
References openTag().
Referenced by QDP::push().
| void QDP::XMLWriter::openTag | ( | const std::string & | nsprefix, |
| const std::string & | tagname ) |
Writes an opening XML tag.
| nsprefix | A namespace prefix for the tag |
| tagname | The name of the tag |
Definition at line 642 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
| void QDP::XMLWriter::openTag | ( | const std::string & | nsprefix, |
| const std::string & | tagname, | ||
| XMLWriterAPI::AttributeList & | al ) |
Writes an opening XML tag.
| nsprefix | A namespace prefix for the tag |
| tagname | The name of the tag |
| al | A list of attributes for this tag |
Definition at line 654 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
| void QDP::XMLWriter::openTag | ( | const std::string & | tagname | ) |
Writes an opening XML tag.
| tagname | The name of the tag |
Definition at line 636 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
Referenced by QDP::XMLArrayWriter::openArray(), openSimple(), QDP::XMLArrayWriter::openStruct(), openStruct(), QDP::operator<<(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::write(), QDP::writeArrayPrimitive(), QDP::writeListPrimitive(), QDP::writePrimitive(), and QDP::writeVectorPrimitive().
| void QDP::XMLWriter::openTag | ( | const std::string & | tagname, |
| XMLWriterAPI::AttributeList & | al ) |
Writes an opening XML tag.
| tagname | The name of the tag |
| al | A list of attributes for this tag |
Definition at line 648 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
| void QDP::XMLWriter::write | ( | const bool & | output | ) |
Write tag contents.
Definition at line 734 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
| void QDP::XMLWriter::write | ( | const double & | output | ) |
Write tag contents.
Definition at line 729 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
| void QDP::XMLWriter::write | ( | const float & | output | ) |
Write tag contents.
Definition at line 724 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
| void QDP::XMLWriter::write | ( | const int & | output | ) |
Write tag contents.
Definition at line 694 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
| void QDP::XMLWriter::write | ( | const long int & | output | ) |
Write tag contents.
Definition at line 714 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
| void QDP::XMLWriter::write | ( | const short int & | output | ) |
Write tag contents.
Definition at line 704 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
| void QDP::XMLWriter::write | ( | const std::string & | output | ) |
Write tag contents.
Definition at line 689 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
Referenced by QDP::operator<<(), QDP::operator<<(), QDP::operator<<(), QDP::operator<<(), QDP::operator<<(), QDP::operator<<(), QDP::operator<<(), QDP::operator<<(), QDP::operator<<(), QDP::operator<<(), QDP::operator<<(), QDP::operator<<(), and QDP::writePrimitive().
| void QDP::XMLWriter::write | ( | const unsigned int & | output | ) |
Write tag contents.
Definition at line 699 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
| void QDP::XMLWriter::write | ( | const unsigned long int & | output | ) |
Write tag contents.
Definition at line 719 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
| void QDP::XMLWriter::write | ( | const unsigned short int & | output | ) |
Write tag contents.
Definition at line 709 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
| void QDP::XMLWriter::writeXML | ( | const std::string & | output | ) |
Definition at line 741 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
Referenced by QDP::operator<<(), and QDP::operator<<().
|
friend |
Definition at line 617 of file qdp_xmlio.h.
References XMLArrayWriter.
Referenced by XMLArrayWriter.