Functions | |
| int | SPI_GEN_str_array_new (const std::string &arrayName) |
| Defines a new string table. | |
| int | SPI_GEN_str_array_select (const std::string &arrayName) |
| Selects a table by its name. | |
| int | SPI_GEN_str_array_new_col (const std::string &colName) |
| Defines a new column in the current table. | |
| int | SPI_GEN_str_array_new_lin (const std::string &cellContent) |
| Writes a new cell in the current column. | |
| int | SPI_GEN_str_array_free () |
| Deallocates the current table. | |
| int | SPI_GEN_str_array_compact () |
| Eliminates identical rows in the current table. | |
| int | SPI_GEN_str_array_simple_sort (const std::string &colName, int sortType, int sortOrder) |
| Compacts and sorts a column of the table known by its name according to a desired type of sorting. | |
| int | SPI_GEN_str_array_sort (int *colSortArray, int *sortTypeArray, int *sortOrderArray, int equalityColNb) |
| Compacts and sorts the current table according to a column number In case of an equality of 2 members, the comparison is made on the other designated columns. | |
| int | SPI_GEN_str_array_read (const std::string &colName, int linNb, std::string &msg) |
| Reads the value of a cell from the current table. | |
| int | SPI_GEN_str_array_modify (const std::string &colName, int linNb, const std::string &msg) |
| Modifies the content of a cell of the current table. | |
| int | SPI_GEN_str_array_col_width (const std::string &colName, int *width) |
| Gives the width of a column of the current table. | |
| int | SPI_GEN_str_array_to_file (const std::string &dirName, const std::string &fileName, char separator) |
| Creates an ascii file from the current table. | |
| int | SPI_GEN_str_array_to_editor () |
| Displays the current table in the text editor. | |
Tables management
| int SPI_GEN_str_array_col_width | ( | const std::string & | colName, |
| int * | width ) |
Gives the width of a column of the current table.
| [in] | colName | column name of the current table |
| [out] | width | column width |
| int SPI_GEN_str_array_compact | ( | ) |
Eliminates identical rows in the current table.
| int SPI_GEN_str_array_free | ( | ) |
Deallocates the current table.
| int SPI_GEN_str_array_modify | ( | const std::string & | colName, |
| int | linNb, | ||
| const std::string & | msg ) |
Modifies the content of a cell of the current table.
| [in] | colName | column name of the current table |
| [in] | linNb | row number of the designated column |
| [in] | msg | cel content |
| int SPI_GEN_str_array_new | ( | const std::string & | arrayName | ) |
Defines a new string table.
| [in] | arrayName | Name of the table (identifier) |
| int SPI_GEN_str_array_new_col | ( | const std::string & | colName | ) |
Defines a new column in the current table.
| [in] | colName | Name of the table |
| int SPI_GEN_str_array_new_lin | ( | const std::string & | cellContent | ) |
Writes a new cell in the current column.
| [in] | cellContent | string to copy into cell |
| int SPI_GEN_str_array_read | ( | const std::string & | colName, |
| int | linNb, | ||
| std::string & | msg ) |
Reads the value of a cell from the current table.
| [in] | colName | column name of the current table |
| [in] | linNb | row number of the designated column |
| [out] | msg | cell content |
| int SPI_GEN_str_array_select | ( | const std::string & | arrayName | ) |
Selects a table by its name.
| [in] | arrayName | name of the table |
| int SPI_GEN_str_array_simple_sort | ( | const std::string & | colName, |
| int | sortType, | ||
| int | sortOrder ) |
Compacts and sorts a column of the table known by its name according to a desired type of sorting.
| [in] | colName | name of the column to be sorted |
| [in] | sortType | type of designated column SPI_SORT_LIKE_CHARACTER SPI_SORT_LIKE_INTEGER SPI_SORT_LIKE_DOUBLEFLOAT SPI_SORT_LIKE_DATE |
| [in] | sortOrder | sense of sorting SPI_SORT_NORMAL_ORDER SPI_SORT_REVERSE_ORDER |
| int SPI_GEN_str_array_sort | ( | int * | colSortArray, |
| int * | sortTypeArray, | ||
| int * | sortOrderArray, | ||
| int | equalityColNb ) |
Compacts and sorts the current table according to a column number
In case of an equality of 2 members, the comparison is made on the other designated columns.
| [in] | colSortArray | table of column numbers to be tested for sorting (priority column at the start of the table) |
| [in] | sortTypeArray | columns types table SPI_SORT_LIKE_CHARACTER SPI_SORT_LIKE_INTEGER SPI_SORT_LIKE_DOUBLEFLOAT SPI_SORT_LIKE_DATE |
| [in] | sortOrderArray | sort direction table SPI_SORT_NORMAL_ORDER SPI_SORT_REVERSE_ORDER |
| [in] | equalityColNb | number of columns defined for equality tests |
| int SPI_GEN_str_array_to_editor | ( | ) |
Displays the current table in the text editor.
| int SPI_GEN_str_array_to_file | ( | const std::string & | dirName, |
| const std::string & | fileName, | ||
| char | separator ) |
Creates an ascii file from the current table.
| [in] | dirName | file directory |
| [in] | fileName | file name |
| [in] | separator | column separation character Eg ' ' or ';' or '/' or '\t' (tab) |