Orcus
Loading...
Searching...
No Matches
Public Member Functions | List of all members
orcus::spreadsheet::iface::import_reference_resolver Class Referenceabstract

#include <import_interface.hpp>

Public Member Functions

virtual src_address_t resolve_address (std::string_view address)=0
 
virtual src_range_t resolve_range (std::string_view range)=0
 

Detailed Description

This is an interface to allow the implementor to provide its own reference address parsers, for both single cell references and cell range references. The implementor may choose to provide a different parser depending of the type of formula_ref_context_t argument given to the import_factory::get_reference_resolver() call.

Member Function Documentation

◆ resolve_address()

virtual src_address_t orcus::spreadsheet::iface::import_reference_resolver::resolve_address ( std::string_view address)
pure virtual

Resolve a textural representation of a single cell address.

Parameters
addresssingle cell address string.
Returns
structure containing the column and row positions of the address.
Exceptions
orcus::invalid_arg_errorthe string is not a valid single cell addreess.

◆ resolve_range()

virtual src_range_t orcus::spreadsheet::iface::import_reference_resolver::resolve_range ( std::string_view range)
pure virtual

Resolve a textural representation of a range address. Note that a string representing a valid single cell address should be considered a valid range address.

Parameters
rangerange address string.
Returns
structure containing the start and end positions of the range address.
Exceptions
invalid_arg_errorthe string is not a valid range addreess.