Functions | |
| int | SPI_FIL_open_ascii_file (const std::string &dir, const std::string &name, int mode) |
| Opens ASCII file. | |
| int | SPI_FIL_read_ascii_file (std::string &line, int index) |
| Reads a line in the ASCII file. | |
| int | SPI_FIL_write_ascii_file (const std::string &line, int index) |
| Writes a line in ASCII file. | |
| int | SPI_FIL_close_ascii_file (int index) |
| Closes a ASCII file. | |
| int | SPI_FIL_edit_file (const std::string &dir, const std::string &file) |
| Launches the editor defined in GO2cam. | |
Read/write ascii files
| int SPI_FIL_close_ascii_file | ( | int | index | ) |
Closes a ASCII file.
| [in] | index | index of the file to close |
| int SPI_FIL_edit_file | ( | const std::string & | dir, |
| const std::string & | file ) |
Launches the editor defined in GO2cam.
| [in] | dir | directory of the file to edit |
| [in] | file | name of the file to edit |
| int SPI_FIL_open_ascii_file | ( | const std::string & | dir, |
| const std::string & | name, | ||
| int | mode ) |
Opens ASCII file.
| [in] | dir | directory of the file |
| [in] | name | name of the file |
| [in] | mode | option to open file 1 write only (file exist or not) 2 read only (file exist) 3 read and write at begining of the file (file exist) 4 read and write at end of the file (file exist) |
| int SPI_FIL_read_ascii_file | ( | std::string & | line, |
| int | index ) |
Reads a line in the ASCII file.
| [in] | index | index of the file |
| [out] | line | line read |
| int SPI_FIL_write_ascii_file | ( | const std::string & | line, |
| int | index ) |
Writes a line in ASCII file.
| [in] | line | line to write |
| [in] | index | index of the file |