aboutsummaryrefslogtreecommitdiff
path: root/libxsde/xsde/cxx/qname-stl.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libxsde/xsde/cxx/qname-stl.hxx')
-rw-r--r--libxsde/xsde/cxx/qname-stl.hxx59
1 files changed, 59 insertions, 0 deletions
diff --git a/libxsde/xsde/cxx/qname-stl.hxx b/libxsde/xsde/cxx/qname-stl.hxx
new file mode 100644
index 0000000..ea5b5d8
--- /dev/null
+++ b/libxsde/xsde/cxx/qname-stl.hxx
@@ -0,0 +1,59 @@
+// file : xsde/cxx/qname-stl.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2005-2009 Code Synthesis Tools CC
+// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
+
+#ifndef XSDE_CXX_QNAME_STL_HXX
+#define XSDE_CXX_QNAME_STL_HXX
+
+#include <string>
+
+namespace xsde
+{
+ namespace cxx
+ {
+ class qname
+ {
+ public:
+ qname ();
+ explicit
+ qname (const std::string& name);
+ qname (const std::string& prefix, const std::string& name);
+
+ void
+ swap (qname&);
+
+ const std::string&
+ prefix () const;
+
+ std::string&
+ prefix ();
+
+ void
+ prefix (const std::string&);
+
+ const std::string&
+ name () const;
+
+ std::string&
+ name ();
+
+ void
+ name (const std::string&);
+
+ private:
+ std::string prefix_;
+ std::string name_;
+ };
+
+ bool
+ operator== (const qname&, const qname&);
+
+ bool
+ operator!= (const qname&, const qname&);
+ }
+}
+
+#include <xsde/cxx/qname-stl.ixx>
+
+#endif // XSDE_CXX_QNAME_STL_HXX