Qore jni Module 2.6.0
Loading...
Searching...
No Matches
ExcelDataProvider::ExcelWorksheetReadDataProvider Class Reference

Provides a data provider for reading EXCEL files. More...

#include <ExcelWorksheetReadDataProvider.qc.dox.h>

Inherits DataProvider::AbstractDataProvider.

Public Member Methods

void constructor (soft< hash< auto > > opts, string sheet, InputStream i, string name)
 Creates the ExcelReadDataProvider with the input stream, name, sheet name, and optionally an option hash.
 
void constructor (soft< hash< auto > > opts, string sheet, string path, string name)
 Creates the ExcelReadDataProvider with the input data path, name, sheet name, and optionally an option hash.
 
void setup (soft< hash< auto > > opts, string name, string sheet)
 Common constructor code.
 
void setOptions ()
 Common setup code.
 
string getName ()
 Returns the object name.
 
AbstractDataProviderRecordIterator searchRecordsImpl (soft< hash< auto > > where_cond, soft< hash< auto > > search_options)
 Returns an iterator for zero or more records matching the search options.
 
soft< hash< string, AbstractDataField > > getRecordTypeImpl (soft< hash< auto > > search_options)
 Returns the description of the record type, if any.
 
hash< DataProviderInfo > getStaticInfoImpl ()
 Returns data provider static info.
 

Public Attributes

const auto ProviderInfo = ...
 Provider info.
 

Private Attributes

ExcelIterator i
 the iterator object
 
string name
 the name of the object
 
string sheet
 the name of the worksheet
 
soft< hash< auto > > opts
 Excel iteration options.
 

Detailed Description

Provides a data provider for reading EXCEL files.

Member Function Documentation

◆ constructor() [1/2]

void ExcelDataProvider::ExcelWorksheetReadDataProvider::constructor ( soft< hash< auto > >  opts,
string  sheet,
InputStream  i,
string  name 
)

Creates the ExcelReadDataProvider with the input stream, name, sheet name, and optionally an option hash.

Parameters
ithe input stream
namethe name of the object
sheetthe name of the current worksheet
optsa hash of optional options, must be already processed for validity

◆ constructor() [2/2]

void ExcelDataProvider::ExcelWorksheetReadDataProvider::constructor ( soft< hash< auto > >  opts,
string  sheet,
string  path,
string  name 
)

Creates the ExcelReadDataProvider with the input data path, name, sheet name, and optionally an option hash.

Parameters
paththe path to the input file
namethe name of the object
sheetthe name of the current worksheet
optsa hash of optional options, must be already processed for validity

◆ searchRecordsImpl()

AbstractDataProviderRecordIterator ExcelDataProvider::ExcelWorksheetReadDataProvider::searchRecordsImpl ( soft< hash< auto > >  where_cond,
soft< hash< auto > >  search_options 
)

Returns an iterator for zero or more records matching the search options.

Parameters
where_condthe search criteria
search_optionsthe search options after processing by validateSearchOptions()

The documentation for this class was generated from the following file: