TF++, Miscellaneous classes and modules in C++:

read and write FORTRAN file data More...

#include <tfxx/bytesex.h>
#include <fstream>
#include <sstream>
Include dependency graph for fortranio.h:

Go to the source code of this file.

Classes

class  tfxx::fortranio::FortranBinInput
 read FORTRAN binary data ,This class reads FORTRAN binary data. FORTRAN binary data is always written in chunks of several bytes, where each chunk is preceded and followed by a 4-byte integer byte-count. This class takes care of this structure of byte-counts an returns only the real data (omitting the counts). More...
 
class  tfxx::fortranio::FortranBinOutput
 write FORTRAN binary data ,This class writes FORTRAN binary data. FORTRAN binary data is always written in chunks of several bytes, where each chunk is preceded and followed by a 4-byte integer byte-count. This class takes care of this structure of byte-counts. More...
 

Namespaces

 tfxx
 Namespace containing all code of library libtfxx.
 
 tfxx::fortranio
 contains all FORTRAN file data input output functions ,
 

Macros

#define TF_FORTRANIO_H_VERSION   "TF_ V1.5 "
 

Functions

template<typename T >
tfxx::fortranio::FortranBinOutputtfxx::fortranio::operator<< (tfxx::fortranio::FortranBinOutput &fo, const T &value)
 Output operator template for class FortranBinOutput ,The compiler will consider namespace tfxx::fortranio due to the involved FortranBinOutput object. There is another output operator template to write raw Blitz++ arrays. More...
 
template<typename T >
tfxx::fortranio::FortranBinInputtfxx::fortranio::operator>> (tfxx::fortranio::FortranBinInput &fi, T &value)
 Input operator template for class FortranBinInput ,The compiler will consider namespace tfxx::fortranio due to the involved FortranBinInput object. There is another input operator template to read raw Blitz++ arrays. More...
 

Detailed Description

read and write FORTRAN file data


Author
Thomas Forbriger
Date
13/01/2002

read and write FORTRAN file data (prototypes)

Copyright '(c)' 2002 by Thomas Forbriger (IMG Frankfurt)


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software

Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

REVISIONS and CHANGES

  • 13/01/2002 V1.0 Thomas Forbriger
  • 07/02/2002 V1.1 reflect changes in TIterator and TBrowser
  • 14/11/2002 V1.2 copied from libclass
  • 15/11/2002 V1.3 no arrays for buffering
  • 19/11/2002 V1.4 remove all access functions rather use I/O operator
  • 28/11/2002 V1.5
    - support reading and writing of magic numbers
    • input needs a cleaning destructor
  • 19/07/2005 V1.6 use bytesex.h now

Definition in file fortranio.h.