3#include <knowCore/Uris/askcore_datatype.h>
4#include <knowCore/Value.h>
5#include <knowCore/ValueList.h>
6#include <knowRDF/Literal.h>
10 template<
typename _T_>
13 template<
typename _T_,
typename _DO_NOT_SPECIALISED_ =
void>
14 cres_qresult<knowCore::Value> toValue(
const _T_& _t)
16 return ValueMarshal<_T_>::convert(_t);
19 template<
typename _T_>
22 return ValueMarshal<_T_>::convert(_t);
25 template<
typename _T_>
28 static cres_qresult<knowCore::Value> convert(
const _T_& _t)
39 return cres_success(_t);
42 template<
typename _T_>
45 static cres_qresult<knowCore::Value> convert(
const QList<_T_>& _t)
48 for(
const _T_& st : _t)
61 cres_try(_T_ val_t, fromValue<_T_>(val));
64 return cres_success(list);
cres_qresult< ValueList > toList() const
Definition Value.cpp:254
static Value fromValue(const _T_ &_value)
Definition Value.h:241
cres_qresult< _T_ > value(TypeCheckingMode _conversion=TypeCheckingMode::Safe) const
Definition Value.h:353
Definition ValueMarshal.h:27