Class to manage excel files. More...
Inherits QObject.
Public Member Functions | |
| GO2SExcelFile (String m_filepath, GO2SEnum::GO2SFileOpen mode=GO2SEnum::GO2SFileOpen::read_only) | |
| Open and load an excel file. | |
| GO2SEnum::GO2SError | AddSheet () |
| Create a new sheet at the last position and set it as current sheet. | |
| void | Close () |
| Close the file. | |
| Number | GetColumnCount () |
| Number | GetCurrentSheet () |
| Number | GetRowCount () |
| Boolean | IsOpen () |
| Array< Array< String > > | ReadArray () |
| Read the current sheet content. | |
| Array< Array< String > > | ReadArray (Number startRow, Number startCol, Number endRow, Number endCol) |
| Read several cells between start (row,col) and an end (row,col), in the current sheet. | |
| String | ReadCell (Number row, Number col) |
| Read a cell at coordinate on the current sheet. | |
| Array< String > | ReadColumn (Number col) |
| Read a column in the current sheet. | |
| Array< String > | ReadRow (Number row) |
| Read a row in the current sheet. | |
| void | Save () |
| Save the file. | |
| GO2SEnum::GO2SError | SetCurrentSheet (Number index) |
| GO2SEnum::GO2SError | WriteCell (Number row, Number col, String newCell) |
| Write a new content in a cell. | |
| GO2SEnum::GO2SError | WriteColumn (Number col, Array< String > newCells) |
| Write a column in the current sheet. | |
| GO2SEnum::GO2SError | WriteRow (Number row, Array< String > newCells) |
| Write a row in the current sheet. | |
Class to manage excel files.
| GO2SExcelFile::GO2SExcelFile | ( | String | m_filepath, |
| GO2SEnum::GO2SFileOpen | mode = GO2SEnum::GO2SFileOpen::read_only ) |
Open and load an excel file.
| [in] | m_filepath | full path of the file (directory + name) |
| [in] | mode | opening mode |
|
inline |
|
inline |
|
inline |
|
inline |
| String GO2SExcelFile::ReadCell | ( | Number | row, |
| Number | col ) |
Read a cell at coordinate on the current sheet.
| [in] | row | row of the cell to read |
| [in] | col | column of the cell to read |
| Array< String > GO2SExcelFile::ReadColumn | ( | Number | col | ) |
Read a column in the current sheet.
| [in] | col | column to read |
| Array< String > GO2SExcelFile::ReadRow | ( | Number | row | ) |
Read a row in the current sheet.
| [in] | row | row to read |
| GO2SEnum::GO2SError GO2SExcelFile::SetCurrentSheet | ( | Number | index | ) |
Set the current sheet to another one at the given index
| [in] | index | index of the existing sheet to set as current |
| GO2SEnum::GO2SError GO2SExcelFile::WriteCell | ( | Number | row, |
| Number | col, | ||
| String | newCell ) |
Write a new content in a cell.
| [in] | row | row of the cell to write |
| [in] | col | column of the cell to write |
| [in] | newCell | new content |
| GO2SEnum::GO2SError GO2SExcelFile::WriteColumn | ( | Number | col, |
| Array< String > | newCells ) |
Write a column in the current sheet.
| [in] | col | column to write |
| [in] | newCells | new column content |
| GO2SEnum::GO2SError GO2SExcelFile::WriteRow | ( | Number | row, |
| Array< String > | newCells ) |
Write a row in the current sheet.
| [in] | row | row to write |
| [in] | newCells | new row content |