46 #ifndef TF_FORTRANIO_H_VERSION 48 #define TF_FORTRANIO_H_VERSION \ 51 #include<tfxx/bytesex.h> 112 namespace fortranio {
154 template<
typename T>
void get(T& value);
209 void put(
const T& value);
219 void put_chars(
const char* buf,
const int& n);
313 #endif // TF_FORTRANIO_H_VERSION (includeguard) write FORTRAN binary data ,This class writes FORTRAN binary data. FORTRAN binary data is always writt...
std::ostream & Mostream
The output stream to write to.
void put_chars(const char *buf, const int &n)
put some chars to the output
void end_block()
finish data block
T swap(const T &value)
How to swap any generic type.
tfxx::fortranio::FortranBinOutput & operator<<(tfxx::fortranio::FortranBinOutput &fo, const blitz::Array< T, N > &a)
Output operator template for class FortranBinOutput and blitz.
tfxx::fortranio::FortranBinInput & operator>>(tfxx::fortranio::FortranBinInput &fi, blitz::Array< T, N > &a)
Input operator template for class FortranBinInput and blitz.
FortranBinOutput(std::ostream &os)
start writing to output stream os
void put_char(const char &c)
put the next char to the output
std::ostringstream Mbuffer
The buffering is done by a stringstream.
void write_magic(const char *cmagic)
write magic number (to separate block)
void put(const T &value)
put a value to the output
~FortranBinOutput()
we need a flushing destructor
Namespace containing all code of library libtfxx.