TF++, Miscellaneous classes and modules in C++:
fortraniotest.cc File Reference

C++ part of the Fortran I/O test routines. More...

#include <iostream>
#include <cassert>
#include <tfxx/commandline.h>
#include <tfxx/fortranio.h>
#include <tfxx/complexio.h>
Include dependency graph for fortraniotest.cc:

Go to the source code of this file.

Macros

#define FORTRANIOTEST_VERSION   "FORTRANIOTEST V1.2 C++ part of the Fortran I/O test routines"
 
#define SWAPIT(T)
 Macro function to preform easy to use swap check. More...
 

Functions

template<class T >
void test_swap ()
 Function template to test dry byte swapping. More...
 
void cpu_type ()
 Ask for CPU type and print result. More...
 
void write_data (const std::string &name, const bool &verbose=false)
 write test data More...
 
void read_data (const std::string &name, const bool &verbose=false)
 read test data More...
 
int main (int iargc, char *argv[])
 Main program. More...
 

Variables

const char mymagic [] ="ABCD"
 

Detailed Description

C++ part of the Fortran I/O test routines.


Author
Thomas Forbriger
Date
15/11/2002

C++ part of the Fortran I/O test routines

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

  • 15/11/2002 V1.0 Thomas Forbriger
  • 20/11/2002 V1.1 passed tests on AIX and Intel Linux
  • 19/07/2005 V1.2
    • use bytesex.h now
    • removed struct IOTsize; this is obsolete, since I learned that the sizeof function is a compile-time literal
    • removed check_assumed_size() and CHECK_MACRO() for the same reason

Definition in file fortraniotest.cc.