kDB: Knowledge DataBase
Loading...
Searching...
No Matches
knowCore::MetaTypeDefinitionImplementation< _T_ > Class Template Referenceabstract
Inheritance diagram for knowCore::MetaTypeDefinitionImplementation< _T_ >:
Collaboration diagram for knowCore::MetaTypeDefinitionImplementation< _T_ >:

Protected Member Functions

knowCore::Uri uri () const override
 
int qMetaTypeId () const override
 
virtual cres_qresult< QByteArray > md5 (const _T_ &_value) const =0
 
virtual cres_qresult< QJsonValue > toJsonValue (const _T_ &_value, const SerialisationContexts &_contexts) const =0
 
virtual cres_qresult< void > fromJsonValue (_T_ *_value, const QJsonValue &_json_value, const knowCore::DeserialisationContexts &_contexts) const =0
 
virtual cres_qresult< QCborValue > toCborValue (const _T_ &_value, const SerialisationContexts &_contexts) const =0
 
virtual cres_qresult< void > fromCborValue (_T_ *_value, const QCborValue &_cbor_value, const knowCore::DeserialisationContexts &_contexts) const =0
 
virtual cres_qresult< QString > printable (const _T_ &_value) const =0
 
virtual cres_qresult< QString > toRdfLiteral (const _T_ &_value, const SerialisationContexts &_contexts) const =0
 
virtual cres_qresult< void > fromRdfLiteral (_T_ *_value, const QString &_serialised, const DeserialisationContexts &_contexts) const =0
 
cres_qresult< QString > toJsonString (const _T_ &_value, const SerialisationContexts &_contexts) const
 
cres_qresult< void > fromJsonString (_T_ *_value, const QString &_json_value, const DeserialisationContexts &_contexts) const
 
void * allocate () const override
 
void * duplicate (const void *_value) const override
 
void release (void *_value) const override
 
bool compareEquals (const void *_lhs, const void *_rhs) const override
 
cres_qresult< QByteArray > md5 (const void *_value) const override
 
cres_qresult< QJsonValue > toJsonValue (const void *_value, const SerialisationContexts &_contexts) const override
 
cres_qresult< void > fromJsonValue (void *_value, const QJsonValue &_json_value, const DeserialisationContexts &_contexts) const override
 
cres_qresult< QCborValue > toCborValue (const void *_value, const SerialisationContexts &_contexts) const override
 
cres_qresult< void > fromCborValue (void *_value, const QCborValue &_cbor_value, const DeserialisationContexts &_contexts) const override
 
cres_qresult< QString > printable (const void *_value) const override
 
cres_qresult< QString > toRdfLiteral (const void *_value, const SerialisationContexts &_contexts) const override
 
cres_qresult< void > fromRdfLiteral (void *_value, const QString &_serialised, const DeserialisationContexts &_contexts) const override
 
template<typename _TCoJ_ >
cres_qerror expectedError (const char *_what, const _TCoJ_ &_got) const
 
template<typename _TCoJ_ >
cres_qerror expectedArrayError (const _TCoJ_ &_coj) const
 
template<typename _TCoJ_ >
cres_qerror expectedObjectError (const _TCoJ_ &_coj) const
 
- Protected Member Functions inherited from knowCore::AbstractMetaTypeDefinition

Member Function Documentation

◆ allocate()

template<typename _T_ >
void * knowCore::MetaTypeDefinitionImplementation< _T_ >::allocate ( ) const
inlineoverrideprotectedvirtual

◆ compareEquals()

template<typename _T_ >
bool knowCore::MetaTypeDefinitionImplementation< _T_ >::compareEquals ( const void * _lhs,
const void * _rhs ) const
inlineoverrideprotectedvirtual

◆ duplicate()

template<typename _T_ >
void * knowCore::MetaTypeDefinitionImplementation< _T_ >::duplicate ( const void * _value) const
inlineoverrideprotectedvirtual

◆ fromCborValue()

template<typename _T_ >
cres_qresult< void > knowCore::MetaTypeDefinitionImplementation< _T_ >::fromCborValue ( void * _value,
const QCborValue & _cbor_value,
const DeserialisationContexts & _contexts ) const
inlineoverrideprotectedvirtual

Deserialise from cbor

Implements knowCore::AbstractMetaTypeDefinition.

◆ fromJsonValue()

template<typename _T_ >
cres_qresult< void > knowCore::MetaTypeDefinitionImplementation< _T_ >::fromJsonValue ( void * _value,
const QJsonValue & _json_value,
const DeserialisationContexts & _contexts ) const
inlineoverrideprotectedvirtual

Deserialise from json

Implements knowCore::AbstractMetaTypeDefinition.

◆ fromRdfLiteral()

template<typename _T_ >
cres_qresult< void > knowCore::MetaTypeDefinitionImplementation< _T_ >::fromRdfLiteral ( void * _value,
const QString & _serialised,
const DeserialisationContexts & _contexts ) const
inlineoverrideprotectedvirtual

Serialise according to RDF.

Implements knowCore::AbstractMetaTypeDefinition.

◆ md5()

template<typename _T_ >
cres_qresult< QByteArray > knowCore::MetaTypeDefinitionImplementation< _T_ >::md5 ( const void * _value) const
inlineoverrideprotectedvirtual
Returns
the md5 hash for the given value

Implements knowCore::AbstractMetaTypeDefinition.

◆ printable()

template<typename _T_ >
cres_qresult< QString > knowCore::MetaTypeDefinitionImplementation< _T_ >::printable ( const void * _value) const
inlineoverrideprotectedvirtual

Convert to a string representation for display purposes

Implements knowCore::AbstractMetaTypeDefinition.

◆ qMetaTypeId()

template<typename _T_ >
int knowCore::MetaTypeDefinitionImplementation< _T_ >::qMetaTypeId ( ) const
inlineoverrideprotectedvirtual

The result of calling qMetaTypeId<T>

Implements knowCore::AbstractMetaTypeDefinition.

◆ release()

template<typename _T_ >
void knowCore::MetaTypeDefinitionImplementation< _T_ >::release ( void * _value) const
inlineoverrideprotectedvirtual

◆ toCborValue()

template<typename _T_ >
cres_qresult< QCborValue > knowCore::MetaTypeDefinitionImplementation< _T_ >::toCborValue ( const void * _value,
const SerialisationContexts & _contexts ) const
inlineoverrideprotectedvirtual
Returns
serialise to cbor

Implements knowCore::AbstractMetaTypeDefinition.

◆ toJsonValue()

template<typename _T_ >
cres_qresult< QJsonValue > knowCore::MetaTypeDefinitionImplementation< _T_ >::toJsonValue ( const void * _value,
const SerialisationContexts & _contexts ) const
inlineoverrideprotectedvirtual
Returns
serialise to json

Implements knowCore::AbstractMetaTypeDefinition.

◆ toRdfLiteral()

template<typename _T_ >
cres_qresult< QString > knowCore::MetaTypeDefinitionImplementation< _T_ >::toRdfLiteral ( const void * _value,
const SerialisationContexts & _contexts ) const
inlineoverrideprotectedvirtual

Serialise according to RDF.

Implements knowCore::AbstractMetaTypeDefinition.

◆ uri()

template<typename _T_ >
knowCore::Uri knowCore::MetaTypeDefinitionImplementation< _T_ >::uri ( ) const
inlineoverrideprotectedvirtual

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