#include "Core/Ascii.hpp"#include "Core/io.hpp"#include "Core/CSV.hpp"#include "Anamorphosis/AAnam.hpp"#include "Anamorphosis/AnamDiscreteIR.hpp"#include "Anamorphosis/AnamHermite.hpp"#include "Basic/String.hpp"#include "Basic/OptDbg.hpp"#include "Db/Db.hpp"#include "LithoRule/Rule.hpp"#include "Model/Model.hpp"#include "Basic/Memory.hpp"Functions | |
| static int | st_record_read (const char *title, const char *format,...) |
| static void | st_record_write (const char *format,...) |
| static void | st_filename_patch (const char *ref_name, int rank, int mode, char *file_name) |
| void | ascii_filename (const char *type, int rank, int mode, char *filename) |
| void | ascii_study_define (const char *study) |
| static void | st_file_close (FILE *file) |
| static FILE * | st_file_open (const char *filename, const char *filetype, int mode, int verbose) |
| void | ascii_environ_read (char *file_name, int verbose) |
| void | ascii_simu_read (char *file_name, int verbose, int *nbsimu, int *nbtuba, int *seed) |
| int | ascii_option_defined (const char *file_name, int verbose, const char *option_name, int type, void *answer) |
| Db * | db_read_csv (const char *file_name, const CSVformat &csvfmt, int verbose, int ncol_max, int nrow_max, bool flagAddSampleRank) |
Variables | |
| static char | STUDY [BUFFER_LENGTH] = "./" |
| static char | EXT_DAT [] = "dat" |
| static char | EXT_OUT [] = "out" |
| static char | Fichier_environ [] = "Environ" |
| static char | Fichier_donnees [] = "Data" |
| static char | Fichier_grid [] = "Grid" |
| static char | Fichier_vario [] = "Vario" |
| static char | Fichier_model [] = "Model" |
| static char | Fichier_neigh [] = "Neigh" |
| static char | Fichier_polygon [] = "Polygon" |
| static char | Fichier_option [] = "Option" |
| static char | Fichier_rule [] = "Rule" |
| static char | Fichier_simu [] = "Simu" |
| static char | Fichier_frac [] = "Frac" |
| void ascii_environ_read | ( | char * | file_name, |
| int | verbose | ||
| ) |
Read the Environment definition file
| [in] | file_name | Name of the ASCII file |
| [in] | verbose | Verbose option if the file cannot be opened |
| void ascii_filename | ( | const char * | type, |
| int | rank, | ||
| int | mode, | ||
| char * | filename | ||
| ) |
Returns the name of the file
| [in] | type | Type of the file to be named |
| [in] | rank | Rank of the file (optional) |
| [in] | mode | 0 for read; 1 for write |
| [out] | filename | Output filename |
| 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
| [in] | file_name | Name of the ASCII file |
| [in] | verbose | Verbose option if the file cannot be opened |
| [in] | option_name | Keyword for the requested option |
| [in] | type | Answer type
|
| [out] | answer | Answer |
| void ascii_simu_read | ( | char * | file_name, |
| int | verbose, | ||
| int * | nbsimu, | ||
| int * | nbtuba, | ||
| int * | seed | ||
| ) |
Read the Simulation Characteristics
| [in] | file_name | Name of the ASCII file |
| [in] | verbose | Verbose option if the file cannot be opened |
| [out] | nbsimu | Number of simulations |
| [out] | nbtuba | Number of turning bands |
| [out] | seed | Seed for the random number generator |
| void ascii_study_define | ( | const char * | study | ) |
Set the Study for the test data
| [in] | study | Local name of the study |
| Db* db_read_csv | ( | const char * | file_name, |
| const CSVformat & | csvfmt, | ||
| int | verbose, | ||
| int | ncol_max, | ||
| int | nrow_max, | ||
| bool | flagAddSampleRank | ||
| ) |
Read a CSV file and load the results into a Db
| [in] | file_name | Name of the ASCII file |
| [in] | verbose | Verbose option if the file cannot be opened |
| [in] | csvfmt | CSVformat structure |
| [in] | ncol_max | Maximum number of columns (or -1) |
| [in] | nrow_max | Maximum number of rows (or -1) |
| [in] | flagAddSampleRank | True To add the rank number |
|
static |
Close the ASCII file
| [in] | file | FILE structure to be close |
|
static |
Open an ASCII file
| [in] | filename | Local file name |
| [in] | filetype | Type of the file (optional [NULL] when NEW) |
| [in] | mode | type of file (OLD or NEW) |
| [in] | verbose | Verbose option if the file cannot be opened |
|
static |
Create the File Name by patching the generic name
| [in] | ref_name | Reference Name |
| [in] | rank | Rank of the name |
| [in] | mode | Choice of the added extension
|
| [out] | file_name | Output filename |
|
static |
Read the next record
| [in] | title | Name of the quantity to be read |
| [in] | format | Encoding format |
| [in] | ... | Value to be written |
|
static |
Write the next record
| [in] | format | Encoding format |
| [in] | ... | Value to be written |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |