1.4.1
CCC
 
Ascii.hpp File Reference
#include "gstlearn_export.hpp"

Functions

GSTLEARN_EXPORT void ascii_study_define (const char *study)
 
GSTLEARN_EXPORT void ascii_environ_read (char *file_name, int verbose)
 
GSTLEARN_EXPORT void ascii_filename (const char *type, int rank, int mode, char *filename)
 
GSTLEARN_EXPORT void ascii_simu_read (char *file_name, int verbose, int *nbsimu, int *nbtuba, int *seed)
 
GSTLEARN_EXPORT int ascii_option_defined (const char *file_name, int verbose, const char *option_name, int type, void *answer)
 

Function Documentation

◆ ascii_environ_read()

GSTLEARN_EXPORT void ascii_environ_read ( char *  file_name,
int  verbose 
)

Read the Environment definition file

Parameters
[in]file_nameName of the ASCII file
[in]verboseVerbose option if the file cannot be opened

◆ ascii_filename()

GSTLEARN_EXPORT void ascii_filename ( const char *  type,
int  rank,
int  mode,
char *  filename 
)

Returns the name of the file

Parameters
[in]typeType of the file to be named
[in]rankRank of the file (optional)
[in]mode0 for read; 1 for write
[out]filenameOutput filename

◆ ascii_option_defined()

GSTLEARN_EXPORT int ascii_option_defined ( const char *  file_name,
int  verbose,
const char *  option_name,
int  type,
void *  answer 
)

Check if an option is defined in the Options ASCII file

Returns
1 if the option is defined and 0 otherwise
Parameters
[in]file_nameName of the ASCII file
[in]verboseVerbose option if the file cannot be opened
[in]option_nameKeyword for the requested option
[in]typeAnswer type
  • 0 : Logical (returned as 0 or 1)
  • 1 : integer
  • 2 : real (returned as a double)
[out]answerAnswer

◆ ascii_simu_read()

GSTLEARN_EXPORT void ascii_simu_read ( char *  file_name,
int  verbose,
int *  nbsimu,
int *  nbtuba,
int *  seed 
)

Read the Simulation Characteristics

Parameters
[in]file_nameName of the ASCII file
[in]verboseVerbose option if the file cannot be opened
[out]nbsimuNumber of simulations
[out]nbtubaNumber of turning bands
[out]seedSeed for the random number generator

◆ ascii_study_define()

GSTLEARN_EXPORT void ascii_study_define ( const char *  study)

Set the Study for the test data

Parameters
[in]studyLocal name of the study