remove outdated example code in xlsxreader.cpp

there is already good example code in Lua API.rst and in xlsxreader.lua,
so just remove this one
develop
Myk Taylor 2020-08-11 13:44:07 -07:00
parent 1e9562bd76
commit c6f9eb519a
1 changed files with 0 additions and 35 deletions

@ -1,40 +1,5 @@
/* /*
* Wrapper for xlsxio_read library functions. * Wrapper for xlsxio_read library functions.
*
* Sample usage:
*
* std::string filename = "sample_file.xlsx";
* xlsxioreader xlsxfile = XlsxReader::open_xlsx_file(filename);
* if (xlsxfile == NULL) {
* printf("cannot open file: '%s'", filename.c_str());
* return false;
* }
* auto sheetNames = XlsxReader::list_sheets(xlsxfile);
* for (auto sheetName = sheetNames.begin();
* sheetName != sheetNames.end();
* ++sheetName) {
* printf("reading sheet: %s\n", sheetName->c_str());
* xlsxioreadersheet xlsxsheet =
* XlsxReader::open_sheet(xlsxfile, *sheetName);
* if (xlsxsheet == NULL) {
* printf("cannot open sheet: '%s'", sheetName->c_str());
* continue;
* }
* std::string value;
* int row_num = 1;
* while (XlsxReader::GetNextRow(xlsxsheet)) {
* std::string s;
* printf("%d:\t", row_num);
* while (XlsxReader::GetNextCell(xlsxsheet, s)) {
* printf("%s\t", s.c_str());
* }
* printf("\n");
* ++row_num;
* }
* XlsxReader::close_sheet(xlsxsheet);
* }
* XlsxReader::close_xlsx_file(xlsxfile);
* return true;
*/ */
#define BUILD_XLSXIO_STATIC #define BUILD_XLSXIO_STATIC