Soprano  2.9.4
queryresultiteratorbackend.h
Go to the documentation of this file.
1 /*
2  * This file is part of Soprano Project.
3  *
4  * Copyright (C) 2006 Daniele Galdi <daniele.galdi@gmail.com>
5  * Copyright (C) 2007-2010 Sebastian Trueg <trueg@kde.org>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public License
18  * along with this library; see the file COPYING.LIB. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef SOPRANO_QUERY_RESULT_H
24 #define SOPRANO_QUERY_RESULT_H
25 
26 #include "iteratorbackend.h"
27 #include "bindingset.h"
28 
29 #include <QtCore/QStringList>
30 
31 
32 namespace Soprano {
33 
34  class Node;
35  class Statement;
36 
47  {
48  public:
49  virtual ~QueryResultIteratorBackend();
50 
57  virtual bool next() = 0;
58 
65  virtual BindingSet current() const;
66 
70  virtual Statement currentStatement() const = 0;
71 
75  virtual Node binding( const QString& name ) const = 0;
76 
80  virtual Node binding( int offset ) const = 0;
81 
85  virtual int bindingCount() const = 0;
86 
90  virtual QStringList bindingNames() const = 0;
91 
95  virtual bool isGraph() const = 0;
96 
100  virtual bool isBinding() const = 0;
101 
105  virtual bool isBool() const = 0;
106 
110  virtual bool boolValue() const = 0;
111 
112  protected:
114  };
115 }
116 
117 #endif // SOPRANO_QUERY_RESULT_H
118 
Soprano::Vocabulary::RDF::Statement
SOPRANO_EXPORT QUrl Statement()
SOPRANO_EXPORT
#define SOPRANO_EXPORT
Definition: soprano_export.h:37
Soprano::Statement
A Statement instance represents one RDF quadruple.
Definition: statement.h:47
bindingset.h
Soprano::Vocabulary::Xesam::name
SOPRANO_EXPORT QUrl name()
iteratorbackend.h
Soprano
Definition: backend.h:35
Soprano::BindingSet
Represents one set of bindings in the result of a select query.
Definition: bindingset.h:48
Soprano::IteratorBackend
The actual work in a Iterator instance is done by an IteratorBackend.
Definition: iteratorbackend.h:39
Soprano::Node
A Node represents one RDF resource.
Definition: node.h:53
QString
Soprano::QueryResultIteratorBackend
QueryResultIteratorBackend is the actual working horse behind QueryResultIterator.
Definition: queryresultiteratorbackend.h:46
QStringList