#include "geoslib_define.h"#include "gstlearn_export.hpp"#include "Enum/EJustify.hpp"#include "Basic/AStringFormat.hpp"Classes | |
| class | AStringable |
Functions | |
| GSTLEARN_EXPORT void | messageFlush (const String &string) |
| GSTLEARN_EXPORT void | messerrFlush (const String &string) |
| GSTLEARN_EXPORT void | messerr (const char *format,...) |
| GSTLEARN_EXPORT void | message (const char *format,...) |
| GSTLEARN_EXPORT void | messageNoDiff (const char *format,...) |
| GSTLEARN_EXPORT void | mesArg (const char *title, int current, int nmax) |
| GSTLEARN_EXPORT bool | checkArg (const char *title, int current, int nmax) |
| GSTLEARN_EXPORT void | messageAbort (const char *format,...) |
| GSTLEARN_EXPORT void | mestitle (int level, const char *format,...) |
| GSTLEARN_EXPORT void | mes_process (const char *string, int ntot, int iech) |
| GSTLEARN_EXPORT String | toTitle (int level, const char *format,...) |
| GSTLEARN_EXPORT String | toMatrix (const String &title, const AMatrix &mat, bool flagOverride=false, bool flagSkipZero=false) |
| GSTLEARN_EXPORT String | toMatrix (const String &title, const VectorString &colnames, const VectorString &rownames, bool bycol, int nrows, int ncols, const VectorDouble &tab, bool flagOverride=false, bool flagSkipZero=false) |
| GSTLEARN_EXPORT String | toMatrix (const String &title, const VectorString &colnames, const VectorString &rownames, bool bycol, int nrows, int ncols, const VectorInt &tab, bool flagOverride=false, bool flagSkipZero=false) |
| GSTLEARN_EXPORT String | toVector (const String &title, const VectorDouble &tab, bool flagOverride=true) |
| GSTLEARN_EXPORT String | toVector (const String &title, const VectorVectorDouble &tab, bool flagOverride=true) |
| GSTLEARN_EXPORT String | toVector (const String &title, const VectorInt &tab, bool flagOverride=true) |
| GSTLEARN_EXPORT String | toVector (const String &title, const VectorString &tab, bool flagOverride=true) |
| GSTLEARN_EXPORT String | toStr (const String &string, const EJustify &justify=EJustify::fromKey("RIGHT"), int localSize=0) |
| GSTLEARN_EXPORT String | toDouble (double value, const EJustify &justify=EJustify::fromKey("RIGHT")) |
| GSTLEARN_EXPORT String | toInt (int value, const EJustify &justify=EJustify::fromKey("RIGHT")) |
| GSTLEARN_EXPORT String | toInterval (double zmin, double zmax) |
| GSTLEARN_EXPORT VectorString | toVectorDouble (const VectorDouble &values, const EJustify &justify=EJustify::fromKey("RIGHT")) |
| GSTLEARN_EXPORT void | tab_prints (const char *title, const char *string, int ncol=1, const EJustify &justify=EJustify::fromKey("RIGHT")) |
| GSTLEARN_EXPORT void | tab_printg (const char *title, double value, int ncol=1, const EJustify &justify=EJustify::fromKey("RIGHT")) |
| GSTLEARN_EXPORT void | tab_printd (const char *title, double value, int ncol=1, const EJustify &justify=EJustify::fromKey("RIGHT")) |
| GSTLEARN_EXPORT void | tab_printi (const char *title, int value, int ncol=1, const EJustify &justify=EJustify::fromKey("RIGHT")) |
| GSTLEARN_EXPORT void | tab_print_rc (const char *title, int mode, int value, int ncol=1, const EJustify &justify=EJustify::fromKey("RIGHT")) |
| GSTLEARN_EXPORT void | tab_print_rowname (const char *string, int taille) |
| GSTLEARN_EXPORT void | print_matrix (const char *title, int flag_limit, int bycol, int nx, int ny, const double *sel, const double *tab) |
| GSTLEARN_EXPORT void | print_matrix (const char *title, int flag_limit, const AMatrix &mat) |
| GSTLEARN_EXPORT void | print_trimat (const char *title, int mode, int neq, const double *tl) |
| GSTLEARN_EXPORT void | print_imatrix (const char *title, int flag_limit, int bycol, int nx, int ny, const double *sel, const int *tab) |
| GSTLEARN_EXPORT void | print_vector (const char *title, int flag_limit, int ntab, const double *tab) |
| GSTLEARN_EXPORT void | print_vector (const char *title, int flag_limit, int ntab, const VectorDouble &tab) |
| GSTLEARN_EXPORT void | print_ivector (const char *title, int flag_limit, int ntab, const int *itab) |
| GSTLEARN_EXPORT void | print_ivector (const char *title, int flag_limit, int ntab, const VectorInt &itab) |
| GSTLEARN_EXPORT bool checkArg | ( | const char * | title, |
| int | current, | ||
| int | nmax | ||
| ) |
| GSTLEARN_EXPORT void mes_process | ( | const char * | string, |
| int | ntot, | ||
| int | iech | ||
| ) |
Conditionally print the progress of a procedure
| string | String to be printed |
| ntot | Total number of samples |
| iech | Rank of the current sample |
| GSTLEARN_EXPORT void mesArg | ( | const char * | title, |
| int | current, | ||
| int | nmax | ||
| ) |
Print a standard Error Message if an argument does not lie in Interval
| title | Title to be printed |
| current | Current value of the argument |
| nmax | Maximum (inclusive) possible value |
| GSTLEARN_EXPORT void message | ( | const char * | format, |
| ... | |||
| ) |
Print a formatted message
| format | Output format |
| ... | Additional arguments |
| GSTLEARN_EXPORT void messageAbort | ( | const char * | format, |
| ... | |||
| ) |
Function for aborting the API
| format | Fatal error format |
| ... | Additional arguments |
| GSTLEARN_EXPORT void messageFlush | ( | const String & | string | ) |
When message has been collected as a String, this function produces it out without passing through useless internal buffering
| string | String to be printed out |
| GSTLEARN_EXPORT void messageNoDiff | ( | const char * | format, |
| ... | |||
| ) |
Print a formatted message (with "#NO_DIFF#" prefix)
| format | Output format |
| ... | Additional arguments |
| GSTLEARN_EXPORT void messerr | ( | const char * | format, |
| ... | |||
| ) |
Print Error message
| format | Output format |
| ... | Additional arguments |
| GSTLEARN_EXPORT void messerrFlush | ( | const String & | string | ) |
When the error message has been collected as a String, this function produces it out without passing through useless internal buffering
| string | String to be produced |
| GSTLEARN_EXPORT void mestitle | ( | int | level, |
| const char * | format, | ||
| ... | |||
| ) |
Print a message and underlines it with various formats
| level | Level of the title |
| format | Output format |
| ... | Additional arguments |
| GSTLEARN_EXPORT void print_imatrix | ( | const char * | title, |
| int | flag_limit, | ||
| int | bycol, | ||
| int | nx, | ||
| int | ny, | ||
| const double * | sel, | ||
| const int * | tab | ||
| ) |
Tabulated printout of a matrix (integer version)
| [in] | title | Title (Optional) |
| [in] | flag_limit | option for the limits
|
| [in] | bycol | 1 if values in 'tab' are sorted by column, 0 otherwise |
| [in] | nx | number of columns in the matrix |
| [in] | ny | number of rows in the matrix |
| [in] | sel | array of selection or NULL |
| [in] | tab | array containing the matrix |
| GSTLEARN_EXPORT void print_ivector | ( | const char * | title, |
| int | flag_limit, | ||
| int | ntab, | ||
| const int * | itab | ||
| ) |
Print a vector of integer values in a matrix form
| [in] | title | Title (Optional) |
| [in] | flag_limit | 1 if NTCOL is used; 0 otherwise |
| [in] | ntab | Number of elements in the array |
| [in] | itab | Array to be printed |
| GSTLEARN_EXPORT void print_ivector | ( | const char * | title, |
| int | flag_limit, | ||
| int | ntab, | ||
| const VectorInt & | itab | ||
| ) |
| GSTLEARN_EXPORT void print_matrix | ( | const char * | title, |
| int | flag_limit, | ||
| const AMatrix & | mat | ||
| ) |
| GSTLEARN_EXPORT void print_matrix | ( | const char * | title, |
| int | flag_limit, | ||
| int | bycol, | ||
| int | nx, | ||
| int | ny, | ||
| const double * | sel, | ||
| const double * | tab | ||
| ) |
Tabulated printout of a matrix
| [in] | title | Title (Optional) |
| [in] | flag_limit | option for the limits
|
| [in] | bycol | 1 if values in 'tab' are sorted by column, 0 otherwise |
| [in] | nx | number of columns in the matrix |
| [in] | ny | number of rows in the matrix |
| [in] | sel | array of selection or NULL |
| [in] | tab | array containing the matrix |
| GSTLEARN_EXPORT void print_trimat | ( | const char * | title, |
| int | mode, | ||
| int | neq, | ||
| const double * | tl | ||
| ) |
Tabulated printout of a upper triangular matrix
| [in] | title | Title (Optional) |
| [in] | mode | 1 if the matrix is stored linewise 2 if the matrix is stored columnwise |
| [in] | neq | size of the matrix |
| [in] | tl | array containing the upper triangular matrix |
| GSTLEARN_EXPORT void print_vector | ( | const char * | title, |
| int | flag_limit, | ||
| int | ntab, | ||
| const double * | tab | ||
| ) |
Print a vector of real values in a matrix form
| [in] | title | Title (Optional) |
| [in] | flag_limit | 1 if NTCOL is used; 0 otherwise |
| [in] | ntab | Number of elements in the array |
| [in] | tab | Array to be printed |
| GSTLEARN_EXPORT void print_vector | ( | const char * | title, |
| int | flag_limit, | ||
| int | ntab, | ||
| const VectorDouble & | tab | ||
| ) |
| GSTLEARN_EXPORT void tab_print_rc | ( | const char * | title, |
| int | mode, | ||
| int | value, | ||
| int | ncol, | ||
| const EJustify & | justify | ||
| ) |
Tabulated printout of a row or column value
| [in] | title | optional title (NULL if not defined) |
| [in] | mode | CASE_ROW or CASE_COL |
| [in] | value | Value to be written |
| [in] | ncol | number of columns for the printout |
| [in] | justify | justification flag (EJustify::LEFT, EJustify::CENTER or EJustify::RIGHT) |
| GSTLEARN_EXPORT void tab_print_rowname | ( | const char * | string, |
| int | taille | ||
| ) |
Tabulated printout of a string (character size provided)
| [in] | string | String to be written |
| [in] | taille | Number of characters |
| GSTLEARN_EXPORT void tab_printd | ( | const char * | title, |
| double | value, | ||
| int | ncol, | ||
| const EJustify & | justify | ||
| ) |
Tabulated printout of a double value
| [in] | title | optional title (NULL if not defined) |
| [in] | value | Value to be written |
| [in] | ncol | number of columns for the printout |
| [in] | justify | justification flag (EJustify::LEFT, EJustify::CENTER or EJustify::RIGHT) |
| GSTLEARN_EXPORT void tab_printg | ( | const char * | title, |
| double | value, | ||
| int | ncol, | ||
| const EJustify & | justify | ||
| ) |
Tabulated printout of a real value
| [in] | title | optional title (NULL if not defined) |
| [in] | value | Value to be written |
| [in] | ncol | number of columns for the printout |
| [in] | justify | justification flag (EJustify::LEFT, EJustify::CENTER or EJustify::RIGHT) |
| GSTLEARN_EXPORT void tab_printi | ( | const char * | title, |
| int | value, | ||
| int | ncol, | ||
| const EJustify & | justify | ||
| ) |
Tabulated printout of an integer value
| [in] | title | optional title (NULL if not defined) |
| [in] | value | Value to be written |
| [in] | ncol | number of columns for the printout |
| [in] | justify | justification flag (EJustify::LEFT, EJustify::CENTER or EJustify::RIGHT) |
| GSTLEARN_EXPORT void tab_prints | ( | const char * | title, |
| const char * | string, | ||
| int | ncol, | ||
| const EJustify & | justify | ||
| ) |
Tabulated printout of a string
| [in] | title | optional title (NULL if not defined) |
| [in] | string | String to be written |
| [in] | ncol | number of columns for the printout |
| [in] | justify | justification flag (EJustify::LEFT, EJustify::CENTER or EJustify::RIGHT) |
| GSTLEARN_EXPORT String toDouble | ( | double | value, |
| const EJustify & | justify = EJustify::fromKey("RIGHT") |
||
| ) |
| GSTLEARN_EXPORT String toInt | ( | int | value, |
| const EJustify & | justify = EJustify::fromKey("RIGHT") |
||
| ) |
| GSTLEARN_EXPORT String toInterval | ( | double | zmin, |
| double | zmax | ||
| ) |
| GSTLEARN_EXPORT String toMatrix | ( | const String & | title, |
| const AMatrix & | mat, | ||
| bool | flagOverride, | ||
| bool | flagSkipZero | ||
| ) |
Print the contents of a VectorDouble in a Matrix Form
| title | Title of the printout |
| mat | Contents of a AMatrix |
| flagOverride | true to override printout limitations |
| flagSkipZero | when true, skip the zero values (represented by a '.' as for sparse matrix) always true for sparse matrix |
| GSTLEARN_EXPORT String toMatrix | ( | const String & | title, |
| const VectorString & | colnames, | ||
| const VectorString & | rownames, | ||
| bool | bycol, | ||
| int | nrows, | ||
| int | ncols, | ||
| const VectorDouble & | tab, | ||
| bool | flagOverride, | ||
| bool | flagSkipZero | ||
| ) |
Print the contents of a VectorDouble in a Matrix Form
| title | Title of the printout |
| colnames | Names of the columns (optional) |
| rownames | Names of the rows (optional) |
| bycol | true if values as sorted by column; false otherwise |
| nrows | Number of rows |
| ncols | Number of columns |
| tab | VectorDouble containing the values |
| flagOverride | true to override printout limitations |
| flagSkipZero | when true, skip the zero values (represented by a '.' as for sparse matrix) |
| GSTLEARN_EXPORT String toMatrix | ( | const String & | title, |
| const VectorString & | colnames, | ||
| const VectorString & | rownames, | ||
| bool | bycol, | ||
| int | nrows, | ||
| int | ncols, | ||
| const VectorInt & | tab, | ||
| bool | flagOverride, | ||
| bool | flagSkipZero | ||
| ) |
Print the contents of a VectorDouble in a Matrix Form
| title | Title of the printout |
| colnames | Names of the columns (optional) |
| rownames | Names of the rows (optional) |
| bycol | true if values as sorted by column; false otherwise |
| nrows | Number of rows |
| ncols | Number of columns |
| tab | VectorInt containing the values |
| flagOverride | true to override printout limitations |
| flagSkipZero | when true, skip the zero values (represented by a '.' as for sparse matrix) |
| GSTLEARN_EXPORT String toStr | ( | const String & | string, |
| const EJustify & | justify = EJustify::fromKey("RIGHT"), |
||
| int | localSize = 0 |
||
| ) |
| GSTLEARN_EXPORT String toTitle | ( | int | level, |
| const char * | format, | ||
| ... | |||
| ) |
Print a message and underlines it with various formats
| level | Level of the title |
| format | Output format |
| ... | Additional arguments |
| GSTLEARN_EXPORT String toVector | ( | const String & | title, |
| const VectorDouble & | tab, | ||
| bool | flagOverride | ||
| ) |
Printout a vector in a formatted manner
| title | Title of the printout (or empty string) |
| tab | Vector (real values) to be printed |
| flagOverride | true to override printout limitations |
Printout a vector in a formatted manner
| title | Title of the printout (or empty string) |
| tab | Vector (integer values) to be printed |
| flagOverride | true to override printout limitations |
| GSTLEARN_EXPORT String toVector | ( | const String & | title, |
| const VectorString & | tab, | ||
| bool | flagOverride = true |
||
| ) |
| GSTLEARN_EXPORT String toVector | ( | const String & | title, |
| const VectorVectorDouble & | tab, | ||
| bool | flagOverride | ||
| ) |
Printout a list of vectors in a formatted manner
| title | Title of the printout (or empty string) |
| tab | Vector of vectors (real values) to be printed |
| flagOverride | true to override printout limitations |
| GSTLEARN_EXPORT VectorString toVectorDouble | ( | const VectorDouble & | values, |
| const EJustify & | justify = EJustify::fromKey("RIGHT") |
||
| ) |