diff options
Diffstat (limited to 'Swiften/Parser/Attribute.h')
| -rw-r--r-- | Swiften/Parser/Attribute.h | 8 |
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 @@ -8,26 +8,34 @@ #include <string> namespace Swift { class Attribute { public: Attribute(const std::string& name, const std::string& ns) : name(name), ns(ns) { } + Attribute(const std::string& name, const std::string& ns, const std::string& prefix) : name(name), ns(ns), prefix(prefix) { + } + const std::string& getName() const { return name; } const std::string& getNamespace() const { return ns; } + const std::string& getPrefix() const { + return prefix; + } + bool operator==(const Attribute& o) const { return o.name == name && o.ns == ns; } private: std::string name; std::string ns; + std::string prefix; }; } |
Swift