summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Parser/Attribute.h')
-rw-r--r--Swiften/Parser/Attribute.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Swiften/Parser/Attribute.h b/Swiften/Parser/Attribute.h
index f54317e..07e63b4 100644
--- a/Swiften/Parser/Attribute.h
+++ b/Swiften/Parser/Attribute.h
@@ -14,6 +14,9 @@ namespace Swift {
14 Attribute(const std::string& name, const std::string& ns) : name(name), ns(ns) { 14 Attribute(const std::string& name, const std::string& ns) : name(name), ns(ns) {
15 } 15 }
16 16
17 Attribute(const std::string& name, const std::string& ns, const std::string& prefix) : name(name), ns(ns), prefix(prefix) {
18 }
19
17 const std::string& getName() const { 20 const std::string& getName() const {
18 return name; 21 return name;
19 } 22 }
@@ -22,6 +25,10 @@ namespace Swift {
22 return ns; 25 return ns;
23 } 26 }
24 27
28 const std::string& getPrefix() const {
29 return prefix;
30 }
31
25 bool operator==(const Attribute& o) const { 32 bool operator==(const Attribute& o) const {
26 return o.name == name && o.ns == ns; 33 return o.name == name && o.ns == ns;
27 } 34 }
@@ -29,5 +36,6 @@ namespace Swift {
29 private: 36 private:
30 std::string name; 37 std::string name;
31 std::string ns; 38 std::string ns;
39 std::string prefix;
32 }; 40 };
33} 41}