|
kDB: Knowledge DataBase
|
#include <RDFTermBinaryMarshal.h>


Classes | |
| class | AbstractSerialiser |
| struct | Private |
Public Member Functions | |
| RDFTermBinaryMarshal (RDFValueBinaryMarshal *_marshal, const Connection &_connection) | |
| knowCore::ReturnValue< knowCore::Value > | toValue (const QByteArray &_source, const kDB::Repository::Connection &_connection) const override |
| knowCore::ReturnValue< QByteArray > | toByteArray (const knowCore::Value &_source, QString &_oidName, const kDB::Repository::Connection &_connection) const override |
Public Member Functions inherited from kDB::Repository::AbstractBinaryMarshal | |
| QString | oid () const |
| knowCore::Uri | datatype () const |
| Modes | modes () const |
Static Public Member Functions | |
| static bool | registerSerialiser (const knowCore::Uri &_valueUri, AbstractSerialiser *_serialiser) |
Additional Inherited Members | |
Public Types inherited from kDB::Repository::AbstractBinaryMarshal | |
| enum class | Mode { ToVariant = 0x1 , ToByteArray = 0x2 } |
Protected Member Functions inherited from kDB::Repository::AbstractBinaryMarshal | |
| AbstractBinaryMarshal (const QString &_oid, const knowCore::Uri &_datatype, const Modes &_modes) | |
Static Protected Member Functions inherited from kDB::Repository::AbstractBinaryMarshal | |
| template<typename _T_ > | |
| static knowCore::Uri | datatype () |
This class handles the storage of RDF Literal in the database. It stores the dataype, the value (using RDFValueBinaryMarshal) and the lang.
|
overridevirtual |
Convert a knowCore::Value to a postgresql binary representation.
| _oidName | is filled with the postgresql OID name |
Reimplemented from kDB::Repository::AbstractBinaryMarshal.
|
overridevirtual |
Convert from a postgresql binary representation to a knowCore::Value value.
Reimplemented from kDB::Repository::AbstractBinaryMarshal.