QtSparql  0.2.6
qsparqlresultrow.h
1 /***************************************************************************/
45 #ifndef QSPARQLRESULTROW_H
46 #define QSPARQLRESULTROW_H
47 
48 #include "qsparql.h"
49 
50 #include <QtCore/qstring.h>
51 
52 QT_BEGIN_HEADER
53 
54 QT_BEGIN_NAMESPACE
55 
56 QT_MODULE(Sparql)
57 
58 class QSparqlBinding;
59 class QStringList;
60 class QVariant;
61 class QSparqlResultRowPrivate;
62 
63 class Q_SPARQL_EXPORT QSparqlResultRow
64 {
65 public:
67  QSparqlResultRow(const QSparqlResultRow& other);
68  QSparqlResultRow& operator=(const QSparqlResultRow& other);
70 
71  bool operator==(const QSparqlResultRow &other) const;
72  inline bool operator!=(const QSparqlResultRow &other) const { return !operator==(other); }
73 
74  int indexOf(const QString &name) const;
75  QString variableName(int i) const;
76 
77  QSparqlBinding binding(int i) const;
78  QSparqlBinding binding(const QString &name) const;
79  QVariant value(int i) const;
80  QVariant value(const QString &name) const;
81 
82  void append(const QSparqlBinding& binding);
83 
84  bool isEmpty() const;
85  bool contains(const QString& name) const;
86  void clear();
87  void clearValues();
88  int count() const;
89 
90 private:
91  void detach();
92  QSparqlResultRowPrivate* d;
93 };
94 
95 #ifndef QT_NO_DEBUG_STREAM
96 Q_SPARQL_EXPORT QDebug operator<<(QDebug, const QSparqlResultRow &);
97 #endif
98 
99 QT_END_NAMESPACE
100 
101 QT_END_HEADER
102 
103 #endif // QSPARQLRESULTROW_H
QSparqlBinding
The QSparqlBinding class handles a binding between a SPARQL query variable name and the value of the ...
Definition: qsparqlbinding.h:62
QSparqlResultRow::operator!=
bool operator!=(const QSparqlResultRow &other) const
Definition: qsparqlresultrow.h:72
QSparqlResultRow
The QSparqlResultRow class encapsulates a row in the results of a query.
Definition: qsparqlresultrow.h:64