TF++, Miscellaneous classes and modules in C++:
I/O byte swapping facility.

Provides function to check bytesex and swap input bytes. More...

Collaboration diagram for I/O byte swapping facility.:

Modules

 Interface provided through bytesex.h
 Interface provided through bytesex.h,.
 
 Interface provided through complexio.h
 Interface provided through complexio.h.
 
 Interface provided through fortranio.h
 Interface provided through fortranio.h,.
 

Namespaces

 tfxx::ioswap
 All facilities for checking bytesex and swapping input binary data. ,.
 

Classes

union  tfxx::ioswap::IOUnion< T >
 

Enumerations

enum  tfxx::ioswap::Ecpu_type { tfxx::ioswap::cpu_Intel = 1, tfxx::ioswap::cpu_Motorola = 2, tfxx::ioswap::cpu_unknown = 3 }
 Define different CPU type that are recognized. More...
 
enum  tfxx::ioswap::Emagic_type { tfxx::ioswap::magic_match = 1, tfxx::ioswap::magic_swap = 2, tfxx::ioswap::magic_nomatch = 3 }
 Define bytesex indicator for magic number test. More...
 

Detailed Description

Provides function to check bytesex and swap input bytes.

When working in a multi-CPU-model environment, data written on one host (with Intel CPU e.g.) can not easily be read on a different host (with Motorola CPU e.g.) when using binary data. In this group we provide facilities to check bytesex of datafiles and perform byte-swapping if necessary.

Tests on this module were performed within tests of the FORTRAN I/O functions.

See also
TEST: Fortran I/O and byte swapping.
FORTRAN I/O functions
Interface provided through bytesex.h

The components are collected in namespace tfxx::ioswap.