mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
26 lines
461 B
C++
26 lines
461 B
C++
#include "xlnt-arrow.h"
|
|
|
|
void xlsx2arrow(std::istream &s, arrow::Table &table)
|
|
{
|
|
xlnt::streaming_workbook_reader reader;
|
|
reader.open(s);
|
|
|
|
reader.begin_worksheet();
|
|
int first_row = 0;
|
|
while (reader.has_cell())
|
|
{
|
|
auto cell = reader.read_cell();
|
|
|
|
if (first_row < 1)
|
|
{
|
|
first_row = cell.row();
|
|
}
|
|
}
|
|
reader.end_worksheet();
|
|
}
|
|
|
|
void arrow2xlsx(const arrow::Table &table, std::istream &s)
|
|
{
|
|
|
|
}
|