14 #ifndef FIELDIO_INCLUDED
15 #define FIELDIO_INCLUDED
82 virtual void read_file(std::vector<Field *>& vv,
const std::string& filename);
83 virtual void write_file(std::vector<Field *>& vv,
const std::string& filename);
91 static void byte_swap(
void *buf,
size_t size,
size_t nmemb)
static void byte_swap(void *buf, size_t size, size_t nmemb)
< convert byte order. alternative interface.
static const std::string class_name
void deliver(Field *vlocal, Field *vglobal)
distribute data on primary node over parallel nodes.
Container of Field-type object.
FieldIO(const IO_Format::Format *format)
< constructor. format specifies data layout on file.
FieldIO & operator=(const FieldIO &)
static bool is_bigendian()
Common parameter class: provides parameters as singleton.
const IO_Format::Format * m_format
virtual void read_file(Field *v, std::string)=0
read data from file.
virtual void write_file(Field *v, std::string)=0
write data to file.
static void convert_endian(void *buf, size_t size, size_t nmemb)
check if machine byte order is big-endian.
FieldIO class for file I/O of space-time distributed data.
void gather(Field *vglobal, Field *vlocal)
gather data on parallel nodes to primary node.
Bridge::VerboseLevel m_vl