QDP++
QDP::XMLBufferWriter Class Reference

Writes XML metadata to a buffer. More...

#include <qdp_xmlio.h>

Inheritance diagram for QDP::XMLBufferWriter:
QDP::XMLWriter

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)

Detailed Description

Writes XML metadata to a buffer.

Definition at line 1023 of file qdp_xmlio.h.

Constructor & Destructor Documentation

◆ XMLBufferWriter() [1/2]

QDP::XMLBufferWriter::XMLBufferWriter ( )

No prologue written

Definition at line 1289 of file qdp_xmlio.cc.

◆ XMLBufferWriter() [2/2]

QDP::XMLBufferWriter::XMLBufferWriter ( const std::string & s)
explicit

Construct from a string.

Definition at line 1291 of file qdp_xmlio.cc.

References open().

◆ ~XMLBufferWriter()

QDP::XMLBufferWriter::~XMLBufferWriter ( )

Destroy.

Definition at line 1314 of file qdp_xmlio.cc.

Member Function Documentation

◆ fail()

bool QDP::XMLBufferWriter::fail ( ) const
inline

Return true if some failure occurred in previous IO operation.

Definition at line 1049 of file qdp_xmlio.h.

◆ flush()

void QDP::XMLBufferWriter::flush ( )
inline

Flush the buffer.

Definition at line 1046 of file qdp_xmlio.h.

◆ open()

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().

◆ printCurrentContext()

string QDP::XMLBufferWriter::printCurrentContext ( ) const

Definition at line 1312 of file qdp_xmlio.cc.

◆ str()


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