Soprano  2.8.0
Public Member Functions
Soprano::Util::ReadOnlyModel Class Reference

Simple filter model preventing any write operations. More...

#include <Soprano/Util/ReadOnlyModel>

+ Inheritance diagram for Soprano::Util::ReadOnlyModel:

List of all members.

Public Member Functions

 ReadOnlyModel (Model *parentModel=0)
 ~ReadOnlyModel ()
void setParentModel (Model *model)
StatementIterator listStatements (const Statement &partial) const
NodeIterator listContexts () const
QueryResultIterator executeQuery (const QString &query, Query::QueryLanguage language, const QString &userQueryLanguage=QString()) const
bool containsStatement (const Statement &statement) const
bool containsAnyStatement (const Statement &statement) const
bool isEmpty () const
int statementCount () const
Error::ErrorCode addStatement (const Statement &statement)
Error::ErrorCode removeStatement (const Statement &statement)
Error::ErrorCode removeAllStatements (const Statement &statement)
Node createBlankNode ()

Detailed Description

Simple filter model preventing any write operations.

Stacking a ReadOnlyModel on top of another model will prevent any write operation to be performed. All calls to non-const methods are terminated by Error::ErrorPermissionDenied.

Author:
Sebastian Trueg trueg.nosp@m.@kde.nosp@m..org
Since:
2.1

Definition at line 43 of file readonlymodel.h.


Constructor & Destructor Documentation

Create a new read-only-model

Parameters:
parentModelThe parent Model.

Destructor


Member Function Documentation

Set the parent Model.

Parameters:
modelThe Model that this filter will forward any commands to.

Default implementation simply pipes the call through to the parent model.

Implements Soprano::Model.

Simply pipes the call through to the parent model.

Implements Soprano::Model.

QueryResultIterator Soprano::Util::ReadOnlyModel::executeQuery ( const QString query,
Query::QueryLanguage  language,
const QString userQueryLanguage = QString() 
) const [virtual]

Simply pipes the call through to the parent model.

Implements Soprano::Model.

bool Soprano::Util::ReadOnlyModel::containsStatement ( const Statement statement) const [virtual]

Simply pipes the call through to the parent model.

Implements Soprano::Model.

bool Soprano::Util::ReadOnlyModel::containsAnyStatement ( const Statement statement) const [virtual]

Simply pipes the call through to the parent model.

Implements Soprano::Model.

bool Soprano::Util::ReadOnlyModel::isEmpty ( ) const [virtual]

Simply pipes the call through to the parent model.

Implements Soprano::Model.

Simply pipes the call through to the parent model.

Implements Soprano::Model.

Will do nothing but set an Error::ErrorPermissionDenied error.

Implements Soprano::Model.

Will do nothing but set an Error::ErrorPermissionDenied error.

Implements Soprano::Model.

Will do nothing but set an Error::ErrorPermissionDenied error.

Implements Soprano::Model.

Will do nothing but set an Error::ErrorPermissionDenied error.

Implements Soprano::Model.


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