syndication/rdf
statement.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef SYNDICATION_RDF_STATEMENT_H
00023 #define SYNDICATION_RDF_STATEMENT_H
00024
00025 #include <syndication/rdf/property.h>
00026
00027 #include <boost/shared_ptr.hpp>
00028
00029 class QString;
00030
00031 namespace Syndication {
00032 namespace RDF {
00033
00034
00035 class Statement;
00036 typedef boost::shared_ptr<Statement> StatementPtr;
00037
00038
00043 class SYNDICATION_EXPORT Statement
00044 {
00045 public:
00046
00050 Statement();
00051
00057 Statement(const Statement& other);
00058
00067 Statement(ResourcePtr subject, PropertyPtr predicate, NodePtr object);
00068
00072 virtual ~Statement();
00073
00079 Statement& operator=(const Statement& other);
00080
00088 virtual bool operator==(const Statement& other) const;
00089
00094 virtual bool isNull() const;
00095
00099 virtual ResourcePtr subject() const;
00100
00104 virtual PropertyPtr predicate() const;
00105
00109 virtual NodePtr object() const;
00110
00117 virtual ResourcePtr asResource() const;
00118
00125 virtual QString asString() const;
00126
00127
00128 private:
00129 class StatementPrivate;
00130 boost::shared_ptr<StatementPrivate> d;
00131 };
00132
00133
00134 }
00135 }
00136
00137 #endif // SYNDICATION_RDF_STATEMENT_H