#include "gstlearn_export.hpp"
#include <stdarg.h>
#include <stdio.h>
Functions | |
GSTLEARN_EXPORT int | _file_read (FILE *file, const char *format, va_list ap) |
GSTLEARN_EXPORT int | _file_get_ncol (FILE *file) |
GSTLEARN_EXPORT void | _file_delimitors (char del_com, const char *del_sep, char del_blk) |
GSTLEARN_EXPORT FILE * | _file_open (const char *filename, int mode) |
GSTLEARN_EXPORT int | _record_read (FILE *file, const char *format,...) |
GSTLEARN_EXPORT int | _buffer_read (char **buffer, const char *format, va_list ap) |
GSTLEARN_EXPORT void | _file_write (FILE *file, const char *format, va_list ap) |
GSTLEARN_EXPORT void | _buffer_write (char *buffer, const char *format, va_list ap) |
GSTLEARN_EXPORT void | _lire_string (const char *question, int flag_def, const char *valdef, char *answer) |
GSTLEARN_EXPORT int | _lire_int (const char *question, int flag_def, int valdef, int valmin, int valmax) |
GSTLEARN_EXPORT double | _lire_double (const char *question, int flag_def, double valdef, double valmin, double valmax) |
GSTLEARN_EXPORT int | _lire_logical (const char *question, int flag_def, int valdef) |
GSTLEARN_EXPORT void | _erase_current_string (void) |
GSTLEARN_EXPORT int _buffer_read | ( | char ** | buffer, |
const char * | format, | ||
va_list | ap | ||
) |
Read the next token from the buffer
[in] | buffer | Buffer to be read |
[in] | format | format |
[out] | ap | va_list containing the read variables |
This method is not documented on purpose. It should remain private
GSTLEARN_EXPORT void _buffer_write | ( | char * | buffer, |
const char * | format, | ||
va_list | ap | ||
) |
Write the next token into the buffer
[in] | buffer | Writing buffer |
[in] | format | Encoding format |
[in] | ap | va_list to be written |
This method is not documented on purpose. It should remain private
GSTLEARN_EXPORT void _erase_current_string | ( | void | ) |
Erase the current decoding string
This method is not documented on purpose. It should remain private
GSTLEARN_EXPORT void _file_delimitors | ( | char | del_com, |
const char * | del_sep, | ||
char | del_blk | ||
) |
Define the file delimitors
[in] | del_com | Delimitor for comments |
[in] | del_sep | Delimitor for separator |
[in] | del_blk | Delimitor for blank |
This method is not documented on purpose. It should remain private
GSTLEARN_EXPORT int _file_get_ncol | ( | FILE * | file | ) |
Get the number of tokens in the line
[in] | file | FILE structure |
This method is not documented on purpose. It should remain private
GSTLEARN_EXPORT FILE* _file_open | ( | const char * | filename, |
int | mode | ||
) |
Open an ASCII file
[in] | filename | Local file name |
[in] | mode | type of file (OLD or NEW) |
This method is not documented on purpose. It should remain private
GSTLEARN_EXPORT int _file_read | ( | FILE * | file, |
const char * | format, | ||
va_list | ap | ||
) |
Read the next token from the file
[in] | file | FILE structure |
[in] | format | format |
[in] | ap | Value to be read |
This method is not documented on purpose. It should remain private
GSTLEARN_EXPORT void _file_write | ( | FILE * | file, |
const char * | format, | ||
va_list | ap | ||
) |
Write the next token from the file
[in] | file | FILE structure |
[in] | format | Encoding format |
[in] | ap | Value to be written |
This method is not documented on purpose. It should remain private
GSTLEARN_EXPORT double _lire_double | ( | const char * | question, |
int | flag_def, | ||
double | valdef, | ||
double | valmin, | ||
double | valmax | ||
) |
Read a double value
[in] | question | Question to be asked |
[in] | flag_def | 1 if the default is authorized; 0 otherwise |
[in] | valdef | Default value or TEST |
[in] | valmin | Minimum authorized value or TEST |
[in] | valmax | Maximum authorized value or TEST |
This method is not documented on purpose. It should remain private
GSTLEARN_EXPORT int _lire_int | ( | const char * | question, |
int | flag_def, | ||
int | valdef, | ||
int | valmin, | ||
int | valmax | ||
) |
Read an integer value
[in] | question | Question to be asked |
[in] | flag_def | 1 if the default is authorized; 0 otherwise |
[in] | valdef | Default value or ITEST |
[in] | valmin | Minimum authorized value or ITEST |
[in] | valmax | Maximum authorized value or ITEST |
This method is not documented on purpose. It should remain private
GSTLEARN_EXPORT int _lire_logical | ( | const char * | question, |
int | flag_def, | ||
int | valdef | ||
) |
Read a boolean answer
[in] | question | Question to be asked |
[in] | flag_def | 1 if the default is authorized; 0 otherwise |
[in] | valdef | Default value (0 for NO and 1 for YES) |
This method is not documented on purpose. It should remain private
GSTLEARN_EXPORT void _lire_string | ( | const char * | question, |
int | flag_def, | ||
const char * | valdef, | ||
char * | answer | ||
) |
Read astring
[in] | question | Question to be asked |
[in] | flag_def | 1 if the default is authorized; 0 otherwise |
[in] | valdef | Default string |
[out] | answer | Answering string |
This method is not documented on purpose. It should remain private
GSTLEARN_EXPORT int _record_read | ( | FILE * | file, |
const char * | format, | ||
... | |||
) |
Read the next record
[in] | file | Pointer to the file to be read |
[in] | format | Encoding format |
[in] | ... | Value to be written |
This method is not documented on purpose. It should remain private