LifeV
|
F77 compatible character class. More...
#include <FortranWrapper.hpp>
Data Fields | |
char * | M_representation |
size_t | M_length |
Constructors and destructor | |
FortranCharacterString () | |
FortranCharacterString (char *cstring) | |
FortranCharacterString (char *cstring, const size_t stringLength) | |
virtual | ~FortranCharacterString () |
Operators | |
FortranCharacterString | operator() (size_t index) |
void | operator= (char *str) |
operator char * () | |
Methods | |
void | pad (size_t first, size_t paddingSize=1) |
F77 compatible character class.
A minimal class used when passing string arguments from C++ to FORTRAN 77 (received as FORTRAN 77 FortranCharacterString strings), and subsequently returned back to C++ as properly zero terminated strings.
When the FortranCharacterString destructor is activated the zero-termination of the c-string is automatically managed. Zero termination is also done each time a string array is subscripted using
FortranCharacterString::operator()(size_t index)
(1) F77 truncates strings when FortranCharacterString variable is short (2) F77 pads variable with blanks when assigned string is short (3) F77 represents a string as a pointer followed by a length (4) A string array is stored in contiguous memory \author: Carsten A. Arnholm, 20-AUG-1995
Definition at line 152 of file FortranWrapper.hpp.
|
inline |
Definition at line 157 of file FortranWrapper.hpp.
|
inline |
Definition at line 277 of file FortranWrapper.hpp.
|
inline |
Definition at line 282 of file FortranWrapper.hpp.
|
inlinevirtual |
Definition at line 295 of file FortranWrapper.hpp.
|
inline |
Definition at line 320 of file FortranWrapper.hpp.
|
inline |
Definition at line 329 of file FortranWrapper.hpp.
|
inline |
Definition at line 341 of file FortranWrapper.hpp.
|
inline |
Definition at line 350 of file FortranWrapper.hpp.
char* M_representation |
Definition at line 176 of file FortranWrapper.hpp.
size_t M_length |
Definition at line 177 of file FortranWrapper.hpp.