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 |
![]() | |
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 | |
![]() | |
enum class | Mode { ToVariant = 0x1 , ToByteArray = 0x2 } |
![]() | |
AbstractBinaryMarshal (const QString &_oid, const knowCore::Uri &_datatype, const Modes &_modes) | |
![]() | |
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.