Orcus
Loading...
Searching...
No Matches
orcus::spreadsheet::iface::import_data_table Class Referenceabstract

#include <import_interface.hpp>

Public Member Functions

virtual void set_type (data_table_type_t type)=0
virtual void set_range (const range_t &range)=0
virtual void set_first_reference (std::string_view ref, bool deleted)=0
virtual void set_second_reference (std::string_view ref, bool deleted)=0
virtual void commit ()=0

Detailed Description

Interface for importing data tables.

Member Function Documentation

◆ commit()

virtual void orcus::spreadsheet::iface::import_data_table::commit ( )
pure virtual

Store the current data table data in the buffer to the backend sheet storage.

◆ set_first_reference()

virtual void orcus::spreadsheet::iface::import_data_table::set_first_reference ( std::string_view ref,
bool deleted )
pure virtual

Set the reference of the first input cell.

Parameters
refreference of the first input cell.
deletedwhether or not this input cell has been deleted.

◆ set_range()

virtual void orcus::spreadsheet::iface::import_data_table::set_range ( const range_t & range)
pure virtual

Set the range of a data table.

Parameters
rangerange of a data table.

◆ set_second_reference()

virtual void orcus::spreadsheet::iface::import_data_table::set_second_reference ( std::string_view ref,
bool deleted )
pure virtual

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
refreference of the second input cell.
deletedwhether or not this input cell has been deleted.

◆ set_type()

virtual void orcus::spreadsheet::iface::import_data_table::set_type ( data_table_type_t type)
pure virtual

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
typetype of a data table.