next up previous
Next: QDPFileReader class member functions Up: QDP/C++ Record API Previous: QDP/C++ Record API

QDPFileWriter class member functions and global functions

Open QDPFileWriter::QDPFileWriter(
          const XMLBufferWriter& file_xml, const string& path,)
          QDP_volfmt_t volfmt, QDPIO_serialparallel_t serpar,
          QDP_filemode_t mode)
  void QDPFileWriter::open(const XMLBufferWriter& file_xml,
          const string& path,
          QDP_volfmt_t volfmt, QDPIO_serialparallel_t serpar,
          QDP_filemode_t mode)
Close QDPFileWriter::~QDPFileWriter()
  void QDPFileWriter::close()
Open? bool QDPFileWriter::is_open()
Errors? bool QDPFileReader::bad()
Write a T void write(QDPFileWriter&, XMLBufferWriter& rec_xml, const T&)
Array of T void write(QDPFileWriter&, XMLBufferWriter& rec_xml,
          const multi1d<T>&)
Concrete class for all QDPIO write operations. Here, write writes the sites as the slowest varying index and the array indices (muli1d) inside of them. bad states if any fatal errors have occurred. The volfmt argument is one of
  QDPIO_SINGLEFILE, QDPIO_MULTIFILE
The serpar argument is one of
  QDPIO_SERIAL, QDPIO_PARALLEL
and the mode argument is one of
  QDPIO_CREATE, QDPIO_OPEN, QDPIO_APPEND
where QDPIO_CREATE fails if the file already exists, QDPIO_OPEN overwrites the file if it already exists and creates it if not, and QDPIO_APPEND fails if the file does not exist and otherwise appends at the end of the file. When appending, the file metadata argument is ignored, since it should already exist.


next up previous
Next: QDPFileReader class member functions Up: QDP/C++ Record API Previous: QDP/C++ Record API
Robert Edwards 2011-12-24