1 #ifndef GUI_OBJUTILS___QUERY_DATA_SOURCE__HPP
2 #define GUI_OBJUTILS___QUERY_DATA_SOURCE__HPP
EStringMatching
String matching algorithms.
@ ePlainSearch
Plain search.
virtual ~IQueryDataSource()
dtor
virtual CRef< objects::CScope > GetScope()
Return a scope for the data source, if available.
virtual void ClearQueryResults()=0
Clear any current results from previous queries.
vector< pair< string, string > > TNamedQueries
virtual string GetColumnLabel(size_t col) const =0
get number and names of columns in data source
virtual size_t GetColsCount() const =0
virtual void ExecuteStringQuery(const string &query, size_t &num_selected, size_t &num_queried, CStringMatching::EStringMatching string_matching=CStringMatching::ePlainSearch, NStr::ECase use_case=NStr::eCase)=0
Execute a string-matching query on the underlying data.
virtual void SetQueryResults(CMacroQueryExec *q)=0
Set selection results to be whatever elements are selected in 'q'.
virtual CMacroQueryExec * GetQueryExec(bool casesensitive, CStringMatching::EStringMatching matching)=0
Create an appropriate instance of a subclass of CQueryExec for that will be used to execute a query o...
The NCBI C++ standard methods for dealing with std::string.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
ECase
Which type of string comparison.
@ eCase
Case sensitive compare.
#define NCBI_GUIOBJUTILS_EXPORT
Defines to provide correct exporting from DLLs in Windows.