Functions | |
| int | SPI_GEN_read_integer_cell_excel (int line, int row, int *iVal) |
| Reads the content of an integer cell on the current sheet. | |
| int | SPI_GEN_read_real_cell_excel (int line, int row, double *rVal) |
| Reads the contents of a real cell on the current sheet. | |
| int | SPI_GEN_read_string_cell_excel (int line, int row, std::string &sVal) |
| Reads the content of a string cell from the current sheet. | |
| int | SPI_GEN_write_string_cell_excel (int line, int row, const std::string &sVal) |
| Writes a string to the current cell. | |
| int | SPI_GEN_write_integer_cell_excel (int line, int row, int iVal) |
| Writes an integer to the current cell. | |
| int | SPI_GEN_write_real_cell_excel (int line, int row, double rVal) |
| Writes a real to the current cell. | |
| int | SPI_GEN_open_file_excel (const std::string &dir, const std::string &workbook, const std::string &worksheet) |
| Opens an Excel workbook and select a current sheet. | |
| int | SPI_GEN_open_file_excel_read_write (const std::string &dir, const std::string &workbook, const std::string &worksheet) |
| Opens an Excel workbook and select a current sheet. | |
| int | SPI_GEN_save_file_excel () |
| Saves the current Excel workbook. | |
| void | SPI_GEN_close_file_excel () |
| Closes Excel workbook. | |
| int | SPI_GEN_read_number_cell_excel (int *numberRows, int *numberColumns) |
| Reads the number of rows and columns in an Excel workbook. | |
Excel features
| void SPI_GEN_close_file_excel | ( | ) |
Closes Excel workbook.
| int SPI_GEN_open_file_excel | ( | const std::string & | dir, |
| const std::string & | workbook, | ||
| const std::string & | worksheet ) |
Opens an Excel workbook and select a current sheet.
| [in] | dir | Excel workbook directory |
| [in] | workbook | name of Excel workbook to load |
| [in] | worksheet | worksheet name to select (empty string => First sheet) |
| int SPI_GEN_open_file_excel_read_write | ( | const std::string & | dir, |
| const std::string & | workbook, | ||
| const std::string & | worksheet ) |
Opens an Excel workbook and select a current sheet.
| [in] | dir | Excel workbook directory |
| [in] | workbook | name of Excel workbook to load |
| [in] | worksheet | worksheet name to select (empty string => First sheet) |
| int SPI_GEN_read_integer_cell_excel | ( | int | line, |
| int | row, | ||
| int * | iVal ) |
Reads the content of an integer cell on the current sheet.
| [in] | line | line containing the cell to read |
| [in] | row | row containing the cell to read |
| [out] | iVal | integer of the current cell |
| int SPI_GEN_read_number_cell_excel | ( | int * | numberRows, |
| int * | numberColumns ) |
Reads the number of rows and columns in an Excel workbook.
| [out] | numberRows | number of rows in the workbook |
| [out] | numberColumns | number of columns in the workbook |
| int SPI_GEN_read_real_cell_excel | ( | int | line, |
| int | row, | ||
| double * | rVal ) |
Reads the contents of a real cell on the current sheet.
| [in] | line | line containing the cell to read |
| [in] | row | row containing the cell to read |
| [out] | rVal | real value of the current cell |
| int SPI_GEN_read_string_cell_excel | ( | int | line, |
| int | row, | ||
| std::string & | sVal ) |
Reads the content of a string cell from the current sheet.
| [in] | line | line containing the cell to read |
| [in] | row | row containing the cell to read |
| [out] | sVal | string value of the current cell |
| int SPI_GEN_save_file_excel | ( | ) |
Saves the current Excel workbook.
| int SPI_GEN_write_integer_cell_excel | ( | int | line, |
| int | row, | ||
| int | iVal ) |
Writes an integer to the current cell.
| [in] | line | line containing the cell to write |
| [in] | row | row containing the cell to write |
| [in] | iVal | integer to write in the cell |
| int SPI_GEN_write_real_cell_excel | ( | int | line, |
| int | row, | ||
| double | rVal ) |
Writes a real to the current cell.
| [in] | line | line containing the cell to write |
| [in] | row | row containing the cell to write |
| [in] | rVal | real to write in the cell |
| int SPI_GEN_write_string_cell_excel | ( | int | line, |
| int | row, | ||
| const std::string & | sVal ) |
Writes a string to the current cell.
| [in] | line | line containing the cell to write |
| [in] | row | row containing the cell to write |
| [in] | sVal | string to write in the cell |