|
QDP++
|
Writes XML metadata to a buffer. More...
#include <qdp_xmlio.h>
Public Member Functions | |
| XMLBufferWriter () | |
| XMLBufferWriter (const std::string &s) | |
| Construct from a string. | |
| ~XMLBufferWriter () | |
| Destroy. | |
| void | open (const std::string &s) |
| Construct from a string. | |
| std::string | str () const |
| Return entire buffer as a string. | |
| std::string | printCurrentContext () const |
| void | flush () |
| Flush the buffer. | |
| bool | fail () const |
| Return true if some failure occurred in previous IO operation. | |
| Public Member Functions inherited from QDP::XMLWriter | |
| 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) |
Writes XML metadata to a buffer.
Definition at line 1023 of file qdp_xmlio.h.
| QDP::XMLBufferWriter::XMLBufferWriter | ( | ) |
No prologue written
Definition at line 1289 of file qdp_xmlio.cc.
|
explicit |
| QDP::XMLBufferWriter::~XMLBufferWriter | ( | ) |
Destroy.
Definition at line 1314 of file qdp_xmlio.cc.
|
inline |
Return true if some failure occurred in previous IO operation.
Definition at line 1049 of file qdp_xmlio.h.
|
inline |
Flush the buffer.
Definition at line 1046 of file qdp_xmlio.h.
| void QDP::XMLBufferWriter::open | ( | const std::string & | s | ) |
Construct from a string.
Definition at line 1293 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
Referenced by XMLBufferWriter().
| string QDP::XMLBufferWriter::printCurrentContext | ( | ) | const |
Definition at line 1312 of file qdp_xmlio.cc.
| string QDP::XMLBufferWriter::str | ( | ) | const |
Return entire buffer as a string.
Definition at line 1299 of file qdp_xmlio.cc.
References QDP::Layout::primaryNode().
Referenced by QDP::QDPFileWriter::open(), QDP::QDPFileWriter::write(), QDP::QDPFileWriter::write(), QDP::QDPFileWriter::write(), QDP::QDPFileWriter::write(), QDP::QDPFileWriter::write(), QDP::QDPFileWriter::write(), and QDP::QDPFileWriter::write().