Soprano
2.9.2
|
#include <datastream.h>
Protected Member Functions | |
virtual bool | read (char *data, qint64 size)=0 |
virtual bool | write (const char *data, qint64 size)=0 |
![]() | |
ErrorCache () | |
void | clearError () const |
void | setError (const Error &) const |
void | setError (const QString &errorMessage, int code=ErrorUnknown) const |
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.
Definition at line 55 of file datastream.h.
Soprano::DataStream::DataStream | ( | ) |
|
virtual |
bool Soprano::DataStream::writeByteArray | ( | const QByteArray & | ) |
bool Soprano::DataStream::writeString | ( | const QString & | ) |
bool Soprano::DataStream::writeUrl | ( | const QUrl & | ) |
bool Soprano::DataStream::writeUnsignedInt8 | ( | quint8 | ) |
bool Soprano::DataStream::writeUnsignedInt16 | ( | quint16 | ) |
bool Soprano::DataStream::writeUnsignedInt32 | ( | quint32 | ) |
bool Soprano::DataStream::writeInt32 | ( | qint32 | ) |
bool Soprano::DataStream::writeBool | ( | bool | ) |
bool Soprano::DataStream::writeErrorCode | ( | Error::ErrorCode | code) |
bool Soprano::DataStream::writeLocator | ( | const Error::Locator & | ) |
bool Soprano::DataStream::writeError | ( | const Error::Error & | ) |
bool Soprano::DataStream::writeLiteralValue | ( | const LiteralValue & | ) |
bool Soprano::DataStream::writeNode | ( | const Node & | ) |
bool Soprano::DataStream::writeStatement | ( | const Statement & | ) |
bool Soprano::DataStream::writeBindingSet | ( | const BindingSet & | ) |
bool Soprano::DataStream::readByteArray | ( | QByteArray & | ) |
bool Soprano::DataStream::readString | ( | QString & | ) |
bool Soprano::DataStream::readUrl | ( | QUrl & | ) |
bool Soprano::DataStream::readUnsignedInt8 | ( | quint8 & | ) |
bool Soprano::DataStream::readUnsignedInt16 | ( | quint16 & | ) |
bool Soprano::DataStream::readUnsignedInt32 | ( | quint32 & | ) |
bool Soprano::DataStream::readInt32 | ( | qint32 & | ) |
bool Soprano::DataStream::readBool | ( | bool & | ) |
bool Soprano::DataStream::readErrorCode | ( | Error::ErrorCode & | code) |
bool Soprano::DataStream::readLocator | ( | Error::Locator & | ) |
bool Soprano::DataStream::readError | ( | Error::Error & | ) |
bool Soprano::DataStream::readLiteralValue | ( | LiteralValue & | ) |
bool Soprano::DataStream::readNode | ( | Node & | ) |
bool Soprano::DataStream::readStatement | ( | Statement & | ) |
bool Soprano::DataStream::readBindingSet | ( | BindingSet & | ) |
|
protectedpure virtual |
Read from the device including waiting for data to be ready.
|
protectedpure virtual |
Write to the device including waiting for data to be ready.