|
QDP++
|
Text output class. More...
#include <qdp_io.h>
Public Member Functions | |
| TextFileWriter () | |
| ~TextFileWriter () | |
| TextFileWriter (const std::string &p) | |
| bool | is_open () |
| Queries whether the file is open. | |
| void | open (const std::string &p) |
| void | close () |
| Closes the last file opened. | |
| void | flush () |
| Flushes the buffer. | |
| Public Member Functions inherited from QDP::TextWriter | |
| TextWriter () | |
| virtual | ~TextWriter () |
| virtual bool | fail () |
| Checks status of the previous IO operation. | |
| virtual void | write (const std::string &output) |
| virtual void | write (const char *output) |
| virtual void | write (const char &output) |
| virtual void | write (const int &output) |
| virtual void | write (const unsigned int &output) |
| virtual void | write (const short int &output) |
| virtual void | write (const unsigned short int &output) |
| virtual void | write (const long int &output) |
| virtual void | write (const unsigned long int &output) |
| virtual void | write (const long long int &output) |
| virtual void | write (const float &output) |
| virtual void | write (const double &output) |
| virtual void | write (const bool &output) |
Protected Member Functions | |
| std::ostream & | getOstream () |
| Get the internal output stream. | |
| Protected Member Functions inherited from QDP::TextWriter | |
| template<typename T> | |
| void | writePrimitive (const T &output) |
| The universal data-writer. | |
Text output class.
This class is used to write data to a text file. Output is done from the primary node only..
The write methods are also wrapped by externally defined >> operators,
| QDP::TextFileWriter::~TextFileWriter | ( | ) |
|
explicit |
| void QDP::TextFileWriter::close | ( | ) |
Closes the last file opened.
Definition at line 483 of file qdp_io.cc.
References is_open(), and QDP::Layout::primaryNode().
Referenced by ~TextFileWriter().
|
virtual |
Flushes the buffer.
Implements QDP::TextWriter.
Definition at line 508 of file qdp_io.cc.
References is_open(), and QDP::Layout::primaryNode().
|
inlineprotectedvirtual |
Get the internal output stream.
Implements QDP::TextWriter.
| bool QDP::TextFileWriter::is_open | ( | ) |
Queries whether the file is open.
Definition at line 493 of file qdp_io.cc.
References QDP::QDPInternal::broadcast(), QDP::Layout::primaryNode(), and QDP::QDP_isInitialized().
| void QDP::TextFileWriter::open | ( | const std::string & | p | ) |
Opens a file for writing.
| p | The name of the file |
Definition at line 474 of file qdp_io.cc.
References is_open(), QDP::Layout::primaryNode(), and QDP::QDP_error_exit().
Referenced by TextFileWriter().