#include <Result.h>
|
using | Type = Interfaces::Result::Type |
|
|
| Result (Interfaces::Result *_result) |
|
| Result (const Result &)=default |
|
Result & | operator= (const Result &)=default |
|
knowCore::Value | value (int _tuple, const QByteArray &_field) const |
|
knowCore::Value | value (int _tuple, const char *_field) const |
|
template<typename _T_ > |
cres_qresult< _T_ > | value (int _tuple, int _field, knowCore::TypeCheckingMode _conversion=knowCore::TypeCheckingMode::Safe) const |
|
template<typename _T_ > |
cres_qresult< _T_ > | value (int _tuple, const QByteArray &_field, knowCore::TypeCheckingMode _conversion=knowCore::TypeCheckingMode::Safe) const |
|
template<typename _T_ > |
cres_qresult< _T_ > | value (int _tuple, const char *_field, knowCore::TypeCheckingMode _conversion=knowCore::TypeCheckingMode::Safe) const |
|
bool | boolean () const |
|
int | fieldIndex (const QString &_name) const |
|
QString | fieldName (int _index) const |
|
| operator bool () const |
|
cres_qresult< void > | write (QIODevice *_device, const QString &_format=knowCore::FileFormat::JSON) const |
|
Hold an Interfaces::Result and provide convenient functionnalities common to all type of query results.
◆ boolean()
bool Result::boolean |
( |
| ) |
const |
If the result is of type Type::Boolean return the boolean value, otherwise result is undefined.
◆ fieldIndex()
int Result::fieldIndex |
( |
const QString & | _name | ) |
const |
- Returns
- the index of the field
_name
.
◆ fieldName()
QString knowDBC::Result::fieldName |
( |
int | _index | ) |
const |
|
inline |
- Returns
- the name of the field at index _index.
The documentation for this class was generated from the following files:
- knowl/src/knowDBC/Result.h
- knowl/src/knowDBC/Result.cpp
- knowl/src/knowDBC/Result_csv.cpp
- knowl/src/knowDBC/Result_json.cpp
- knowl/src/knowDBC/Result_rdf.cpp
- knowl/src/knowDBC/Result_srx.cpp