Gems3k
3.1
GEMS3K standalone solver for geochemical equilibria
|
Print fields of structure outField. More...
#include <io_arrays.h>
Public Member Functions | |
void | writeValue (float val) |
Write float value to file. | |
void | writeValue (double val) |
Write double value to file. | |
void | writeValue (long val) |
Write long value to file. | |
void | writeField (long f_num, long value, bool with_comments, bool brief_mode) |
Writes long field to a text file. | |
void | writeField (long f_num, short value, bool with_comments, bool brief_mode) |
Writes short field to a text file. | |
void | writeField (long f_num, char value, bool with_comments, bool brief_mode) |
Writes char field to a text file. | |
void | writeField (long f_num, double value, bool with_comments, bool brief_mode) |
Writes double field to a text file. | |
void | writeArray (long f_num, double *arr, long int size, long int l_size, bool with_comments=false, bool brief_mode=false) |
Writes array to a text file. | |
void | writeArray (long f_num, long *arr, long int size, long int l_size, bool with_comments=false, bool brief_mode=false) |
Writes array to a text file. | |
void | writeArray (long f_num, short *arr, long int size, long int l_size, bool with_comments=false, bool brief_mode=false) |
Writes array to a text file. | |
void | writeArrayF (long f_num, char *arr, long int size, long int l_size, bool with_comments=false, bool brief_mode=false) |
Writes char array to a text file. | |
TPrintArrays (short aNumFlds, outField *aFlds, fstream &fout) | |
Constructor. | |
void | writeArray (const char *name, char *arr, long int size, long int arr_size) |
Writes char array to a text file. | |
void | writeArray (const char *name, float *arr, long int size, long int l_size=-1L) |
Writes float array to a text file. | |
void | writeArray (const char *name, double *arr, long int size, long int l_size=-1L) |
Writes double array to a text file. | |
void | writeArray (const char *name, long *arr, long int size, long int l_size=-1L) |
Writes long array to a text file. | |
void | writeArray (const char *name, char *arr, int size, int arr_size) |
Writes char array to a text file. | |
void | writeArray (const char *name, float *arr, int size, int l_size=-1) |
Writes float array to a text file. | |
void | writeArray (const char *name, double *arr, int size, int l_size=-1) |
Writes double array to a text file. | |
void | writeArray (const char *name, short *arr, int size, int l_size=-1) |
Writes short array to a text file. | |
void | writeArray (const char *name, float *arr, long int size, long int *selAr, long int nColumns=1L, long int l_size=-1L) |
Writes selected elements from float array to a text file. | |
void | writeArray (const char *name, double *arr, long int size, long int *selAr, long int nColumns=1L, long int l_size=-1L) |
Writes selected elements from double array to a text file. | |
void | writeArray (const char *name, long *arr, long int size, long int *selAr, long int nColumns=1L, long int l_size=-1L) |
Writes selected elements from long array to a text file. | |
void | writeArray (const char *name, float *arr, int size, long int *selAr, int nColumns=1, int l_size=-1) |
Writes selected elements from float array to a text file. | |
void | writeArray (const char *name, double *arr, int size, long int *selAr, int nColumns=1, int l_size=-1) |
Writes selected elements from double array to a text file. | |
void | writeArray (const char *name, short *arr, int size, long int *selAr, int nColumns=1, int l_size=-1) |
Writes selected elements from short array to a text file. |
Print fields of structure outField.
void TPrintArrays::writeArray | ( | long | f_num, |
double * | arr, | ||
long int | size, | ||
long int | l_size, | ||
bool | with_comments = false , |
||
bool | brief_mode = false |
||
) |
Writes array to a text file.
<flds[f_num].name> arr[0] ... arr[size-1]
l_size | - Setup number of elements in line |
with_comments | - Write files with comments for all data entries |
brief_mode | - Do not write data items that contain only default values |
void TPrintArrays::writeArray | ( | long | f_num, |
long * | arr, | ||
long int | size, | ||
long int | l_size, | ||
bool | with_comments = false , |
||
bool | brief_mode = false |
||
) |
Writes array to a text file.
<flds[f_num].name> arr[0] ... arr[size-1]
l_size | - Setup number of elements in line |
with_comments | - Write files with comments for all data entries |
brief_mode | - Do not write data items that contain only default values |
void TPrintArrays::writeArray | ( | long | f_num, |
short * | arr, | ||
long int | size, | ||
long int | l_size, | ||
bool | with_comments = false , |
||
bool | brief_mode = false |
||
) |
Writes array to a text file.
<flds[f_num].name> arr[0] ... arr[size-1]
l_size | - Setup number of elements in line |
with_comments | - Write files with comments for all data entries |
brief_mode | - Do not write data items that contain only default values |
void TPrintArrays::writeArray | ( | const char * | name, |
char * | arr, | ||
long int | size, | ||
long int | arr_size | ||
) |
Writes char array to a text file.
If the first parameter is given as NULL then the char array will be printed as a comment.
void TPrintArrays::writeArrayF | ( | long | f_num, |
char * | arr, | ||
long int | size, | ||
long int | l_size, | ||
bool | with_comments = false , |
||
bool | brief_mode = false |
||
) |
Writes char array to a text file.
<flds[f_num].name> "arr[0]" ... "arr[size-1]"
l_size | - Setup number of characters in one element |
with_comments | - Write files with comments for all data entries |
brief_mode | - Do not write data items that contain only default values |
void TPrintArrays::writeField | ( | long | f_num, |
long | value, | ||
bool | with_comments, | ||
bool | brief_mode | ||
) |
Writes long field to a text file.
<flds[f_num].name> value
with_comments | - Write files with comments for all data entries |
brief_mode | - Do not write data items that contain only default values |
void TPrintArrays::writeField | ( | long | f_num, |
short | value, | ||
bool | with_comments, | ||
bool | brief_mode | ||
) |
Writes short field to a text file.
<flds[f_num].name> value
with_comments | - Write files with comments for all data entries |
brief_mode | - Do not write data items that contain only default values |
void TPrintArrays::writeField | ( | long | f_num, |
char | value, | ||
bool | with_comments, | ||
bool | brief_mode | ||
) |
Writes char field to a text file.
<flds[f_num].name> 'value'
with_comments | - Write files with comments for all data entries |
brief_mode | - Do not write data items that contain only default values |
void TPrintArrays::writeField | ( | long | f_num, |
double | value, | ||
bool | with_comments, | ||
bool | brief_mode | ||
) |
Writes double field to a text file.
<flds[f_num].name> value
with_comments | - Write files with comments for all data entries |
brief_mode | - Do not write data items that contain only default values |