1.4.1
CCC
 
geoslib_io.h File Reference
#include "gstlearn_export.hpp"

Functions

GSTLEARN_EXPORT void record_close (void)
 
GSTLEARN_EXPORT void redefine_message (void(*write_func)(const char *))
 
GSTLEARN_EXPORT void redefine_error (void(*warn_func)(const char *))
 
GSTLEARN_EXPORT void redefine_read (void(*read_func)(const char *, char *))
 
GSTLEARN_EXPORT void redefine_exit (void(*exit_func)(void))
 
GSTLEARN_EXPORT void mem_error (int nbyte)
 
GSTLEARN_EXPORT void message_extern (const char *string)
 
GSTLEARN_EXPORT void exit_extern ()
 
GSTLEARN_EXPORT void string_strip_blanks (char *string, int flag_lead)
 
GSTLEARN_EXPORT void string_strip_quotes (char *string)
 
GSTLEARN_EXPORT void print_current_line (void)
 

Function Documentation

◆ exit_extern()

GSTLEARN_EXPORT void exit_extern ( )

External function to provoke an exit of API This call comes from AStringable where initial mes_abort() has been moved

◆ mem_error()

GSTLEARN_EXPORT void mem_error ( int  nbyte)

Problem in memory allocation

Parameters
[in]nbytenumber of bytes to be allocated

◆ message_extern()

GSTLEARN_EXPORT void message_extern ( const char *  string)

Print a message This call comes from AStringable where initial message() has been moved

Parameters
[in]stringString to be displayed

◆ print_current_line()

GSTLEARN_EXPORT void print_current_line ( void  )

Print the current line read from an ASCII file

◆ record_close()

GSTLEARN_EXPORT void record_close ( void  )

Read the next record

This method is not documented on purpose. It should remain private

◆ redefine_error()

GSTLEARN_EXPORT void redefine_error ( void(*)(const char *)  warn_func)

Redefine the IO routine for printing error message

Parameters
[in]warn_funcWarning function

◆ redefine_exit()

GSTLEARN_EXPORT void redefine_exit ( void(*)(void)  exit_func)

Redefine the exiting routine

Parameters
[in]exit_funcExiting function

◆ redefine_message()

GSTLEARN_EXPORT void redefine_message ( void(*)(const char *)  write_func)

Redefine the IO routine for printing message

Parameters
[in]write_funcWriting function

◆ redefine_read()

GSTLEARN_EXPORT void redefine_read ( void(*)(const char *, char *)  read_func)

Redefine the IO routine for Reading

Parameters
[in]read_funcReading function

◆ string_strip_blanks()

GSTLEARN_EXPORT void string_strip_blanks ( char *  string,
int  flag_lead 
)

Strip the blanks from a string

Parameters
[in,out]stringString to be cleaned
[in]flag_lead1 to strip only the leading blanks

◆ string_strip_quotes()

GSTLEARN_EXPORT void string_strip_quotes ( char *  string)

Strip the leading and trailing quotes from a string

Parameters
[in,out]stringString to be cleaned
Remarks
The quote is searched in first position. If not found, nothing done
If found, the trailing quote is stripped, if similar to the first
character