Orcus
Public Member Functions | List of all members
orcus::spreadsheet::iface::import_reference_resolver Class Referenceabstract

Public Member Functions

virtual address_t resolve_address (const char *p, size_t n)=0
 
virtual range_t resolve_range (const char *p, size_t n)=0
 

Member Function Documentation

◆ resolve_address()

virtual address_t orcus::spreadsheet::iface::import_reference_resolver::resolve_address ( const char *  p,
size_t  n 
)
pure virtual

Resolve a textural representation of a single cell address.

Parameters
ppointer to the first character of the single cell address string.
nsize of the single 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 range_t orcus::spreadsheet::iface::import_reference_resolver::resolve_range ( const char *  p,
size_t  n 
)
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
ppointer to the first character of the range address string.
nsize of the range 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.