kDB: Knowledge DataBase
|
#include <MetaType.h>
Protected Member Functions | |
virtual knowCore::Uri | uri () const =0 |
virtual int | qMetaTypeId () const =0 |
virtual void * | allocate () const =0 |
virtual void * | duplicate (const void *) const =0 |
virtual void | release (void *_value) const =0 |
virtual bool | compareEquals (const void *_lhs, const void *_rhs) const =0 |
virtual cres_qresult< QByteArray > | md5 (const void *_value) const =0 |
virtual cres_qresult< QJsonValue > | toJsonValue (const void *_value, const SerialisationContexts &_contexts) const =0 |
virtual cres_qresult< void > | fromJsonValue (void *_value, const QJsonValue &_json_value, const DeserialisationContexts &_contexts) const =0 |
virtual cres_qresult< QCborValue > | toCborValue (const void *_value, const SerialisationContexts &_contexts) const =0 |
virtual cres_qresult< void > | fromCborValue (void *_value, const QCborValue &_cbor_value, const DeserialisationContexts &_contexts) const =0 |
virtual cres_qresult< QString > | printable (const void *_value) const =0 |
virtual cres_qresult< QString > | toRdfLiteral (const void *_value, const SerialisationContexts &_contexts) const =0 |
virtual cres_qresult< void > | fromRdfLiteral (void *_value, const QString &_serialised, const DeserialisationContexts &_contexts) const =0 |
Friends | |
class | MetaTypeRegistry |
class | MetaTypes |
class | Value |
template<typename > | |
class | MetaTypeInformation |
Definition of a knowCore MetaType, with support function for allocation, md5 hashing, json, cbor and RDF serialisation.
|
protectedpure virtual |
Deserialise from cbor
Implemented in knowCore::MetaTypeDefinitionImplementation< _T_ >, and knowCore::MetaTypeDefinitionImplementation< QList< _T_ > >.
|
protectedpure virtual |
Deserialise from json
Implemented in knowCore::MetaTypeDefinitionImplementation< _T_ >, and knowCore::MetaTypeDefinitionImplementation< QList< _T_ > >.
|
protectedpure virtual |
Serialise according to RDF.
Implemented in knowCore::MetaTypeDefinitionImplementation< _T_ >, and knowCore::MetaTypeDefinitionImplementation< QList< _T_ > >.
|
protectedpure virtual |
Implemented in knowCore::MetaTypeDefinitionImplementation< _T_ >, and knowCore::MetaTypeDefinitionImplementation< QList< _T_ > >.
|
protectedpure virtual |
Convert to a string representation for display purposes
Implemented in knowCore::MetaTypeDefinitionImplementation< _T_ >, and knowCore::MetaTypeDefinitionImplementation< QList< _T_ > >.
|
protectedpure virtual |
The result of calling qMetaTypeId<T>
Implemented in knowCore::MetaTypeDefinitionImplementation< _T_ >, and knowCore::MetaTypeDefinitionImplementation< QList< _T_ > >.
|
protectedpure virtual |
Implemented in knowCore::MetaTypeDefinitionImplementation< _T_ >, and knowCore::MetaTypeDefinitionImplementation< QList< _T_ > >.
|
protectedpure virtual |
Implemented in knowCore::MetaTypeDefinitionImplementation< _T_ >, and knowCore::MetaTypeDefinitionImplementation< QList< _T_ > >.
|
protectedpure virtual |
Serialise according to RDF.
Implemented in knowCore::MetaTypeDefinitionImplementation< _T_ >, and knowCore::MetaTypeDefinitionImplementation< QList< _T_ > >.