import_data_table¶
Defined in header: <orcus/spreadsheet/import_interface.hpp>
-
class import_data_table¶
Interface for importing data tables.
Public Functions
-
virtual ~import_data_table()¶
-
virtual void set_type(data_table_type_t type) = 0¶
Set the type of a data table. A data table can either:
be a single-variable column-oriented,
be a single-variable row-oriented, or
use two variables that use both column and row.
- Parameters:
type – type of a data table.
-
virtual void set_range(const range_t &range) = 0¶
Set the range of a data table.
- Parameters:
range – range of a data table.
-
virtual void set_first_reference(std::string_view ref, bool deleted) = 0¶
Set the reference of the first input cell.
- Parameters:
ref – reference of the first input cell.
deleted – whether or not this input cell has been deleted.
-
virtual void set_second_reference(std::string_view ref, bool deleted) = 0¶
Set the reference of the second input cell but only if the data table uses two variables.
Note
This method gets called only if the data table uses two variables.
- Parameters:
ref – reference of the second input cell.
deleted – whether or not this input cell has been deleted.
-
virtual void commit() = 0¶
Store the current data table data in the buffer to the backend sheet storage.
-
virtual ~import_data_table()¶