Soprano  2.9.4
Public Member Functions | Protected Member Functions | List of all members
Soprano::DataStream Class Referenceabstract

#include <datastream.h>

+ Inheritance diagram for Soprano::DataStream:

Public Member Functions

 DataStream ()
 
virtual ~DataStream ()
 
bool writeByteArray (const QByteArray &)
 
bool writeString (const QString &)
 
bool writeUrl (const QUrl &)
 
bool writeUnsignedInt8 (quint8)
 
bool writeUnsignedInt16 (quint16)
 
bool writeUnsignedInt32 (quint32)
 
bool writeInt32 (qint32)
 
bool writeBool (bool)
 
bool writeErrorCode (Error::ErrorCode code)
 
bool writeLocator (const Error::Locator &)
 
bool writeError (const Error::Error &)
 
bool writeLiteralValue (const LiteralValue &)
 
bool writeNode (const Node &)
 
bool writeStatement (const Statement &)
 
bool writeBindingSet (const BindingSet &)
 
bool readByteArray (QByteArray &)
 
bool readString (QString &)
 
bool readUrl (QUrl &)
 
bool readUnsignedInt8 (quint8 &)
 
bool readUnsignedInt16 (quint16 &)
 
bool readUnsignedInt32 (quint32 &)
 
bool readInt32 (qint32 &)
 
bool readBool (bool &)
 
bool readErrorCode (Error::ErrorCode &code)
 
bool readLocator (Error::Locator &)
 
bool readError (Error::Error &)
 
bool readLiteralValue (LiteralValue &)
 
bool readNode (Node &)
 
bool readStatement (Statement &)
 
bool readBindingSet (BindingSet &)
 
- Public Member Functions inherited from Soprano::Error::ErrorCache
virtual ~ErrorCache ()
 
virtual Error lastError () const
 

Protected Member Functions

virtual bool read (char *data, qint64 size)=0
 
virtual bool write (const char *data, qint64 size)=0
 
- Protected Member Functions inherited from Soprano::Error::ErrorCache
 ErrorCache ()
 
void clearError () const
 
void setError (const Error &) const
 
void setError (const QString &errorMessage, int code=ErrorUnknown) const
 

Detailed Description

Provides streaming methods for all Soprano types. Compared to QDataStream's operators it provides error handling and automatically fills the buffer if more data needs to be requested.

It provides a common interface and exposes the high level operations, while letting the subclasses implement the low level operations.

Author
Sebastian Trueg trueg.nosp@m.@kde.nosp@m..org

Definition at line 55 of file datastream.h.

Constructor & Destructor Documentation

◆ DataStream()

Soprano::DataStream::DataStream ( )

◆ ~DataStream()

virtual Soprano::DataStream::~DataStream ( )
virtual

Member Function Documentation

◆ writeByteArray()

bool Soprano::DataStream::writeByteArray ( const QByteArray )

◆ writeString()

bool Soprano::DataStream::writeString ( const QString )

◆ writeUrl()

bool Soprano::DataStream::writeUrl ( const QUrl )

◆ writeUnsignedInt8()

bool Soprano::DataStream::writeUnsignedInt8 ( quint8  )

◆ writeUnsignedInt16()

bool Soprano::DataStream::writeUnsignedInt16 ( quint16  )

◆ writeUnsignedInt32()

bool Soprano::DataStream::writeUnsignedInt32 ( quint32  )

◆ writeInt32()

bool Soprano::DataStream::writeInt32 ( qint32  )

◆ writeBool()

bool Soprano::DataStream::writeBool ( bool  )

◆ writeErrorCode()

bool Soprano::DataStream::writeErrorCode ( Error::ErrorCode  code)

◆ writeLocator()

bool Soprano::DataStream::writeLocator ( const Error::Locator )

◆ writeError()

bool Soprano::DataStream::writeError ( const Error::Error )

◆ writeLiteralValue()

bool Soprano::DataStream::writeLiteralValue ( const LiteralValue )

◆ writeNode()

bool Soprano::DataStream::writeNode ( const Node )

◆ writeStatement()

bool Soprano::DataStream::writeStatement ( const Statement )

◆ writeBindingSet()

bool Soprano::DataStream::writeBindingSet ( const BindingSet )

◆ readByteArray()

bool Soprano::DataStream::readByteArray ( QByteArray )

◆ readString()

bool Soprano::DataStream::readString ( QString )

◆ readUrl()

bool Soprano::DataStream::readUrl ( QUrl )

◆ readUnsignedInt8()

bool Soprano::DataStream::readUnsignedInt8 ( quint8 &  )

◆ readUnsignedInt16()

bool Soprano::DataStream::readUnsignedInt16 ( quint16 &  )

◆ readUnsignedInt32()

bool Soprano::DataStream::readUnsignedInt32 ( quint32 &  )

◆ readInt32()

bool Soprano::DataStream::readInt32 ( qint32 &  )

◆ readBool()

bool Soprano::DataStream::readBool ( bool &  )

◆ readErrorCode()

bool Soprano::DataStream::readErrorCode ( Error::ErrorCode code)

◆ readLocator()

bool Soprano::DataStream::readLocator ( Error::Locator )

◆ readError()

bool Soprano::DataStream::readError ( Error::Error )

◆ readLiteralValue()

bool Soprano::DataStream::readLiteralValue ( LiteralValue )

◆ readNode()

bool Soprano::DataStream::readNode ( Node )

◆ readStatement()

bool Soprano::DataStream::readStatement ( Statement )

◆ readBindingSet()

bool Soprano::DataStream::readBindingSet ( BindingSet )

◆ read()

virtual bool Soprano::DataStream::read ( char *  data,
qint64  size 
)
protectedpure virtual

Read from the device including waiting for data to be ready.

◆ write()

virtual bool Soprano::DataStream::write ( const char *  data,
qint64  size 
)
protectedpure virtual

Write to the device including waiting for data to be ready.


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