| 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>&) |
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_MULTIFILEThe
serpar argument is one of
QDPIO_SERIAL, QDPIO_PARALLELand the
mode argument is one of
QDPIO_CREATE, QDPIO_OPEN, QDPIO_APPENDwhere
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.