46 #define TF_FORTRANIO_CC_VERSION \ 47 "TF_FORTRANIO_CC V1.7 " 51 #include <tfxx/fortranio.h> 52 #include <tfxx/error.h> 74 "FotranBinInput: internal error - remain count is not zero!");
76 int endcount=buf.
value;
79 "FortranBinInput: bount count at end of block does not match!");
87 "FortranBinInput: stream is not good after reading block size");
101 int endcount=buf.
value;
104 "FortranBinInput (finish_block): " 105 "bount count at end of block does not match!");
118 "FortranBinInput: stream is not good upon reading next char");
130 for (
int i=0; ((i<n) &&
more()); i++)
145 else {
Mswap=
false; }
157 std::string buffer=
Mbuffer.str();
159 count.
value=buffer.size();
#define TFXX_assert(C, M)
Check an assertion and report by throwing an exception.
int magic(const char *const cmagic)
Create a magic number from a character string. ,If represents the input character sequence cmagic an...
std::ostream & Mostream
The output stream to write to.
Emagic_type file_magic_test(std::istream &is, const char *const cmagic, const bool &fortranmode=false)
Check for magic number in file.
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.
The bytesex of the file must be swapped to match this machine.
Emagic_type
Define bytesex indicator for magic number test.
void put_char(const char &c)
put the next char to the output
std::ostringstream Mbuffer
The buffering is done by a stringstream.
The magic number does match the file.
void write_magic(const char *cmagic)
write magic number (to separate block)
void put(const T &value)
put a value to the output
Namespace containing all code of library libtfxx.