diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-02-24 15:16:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-02-24 15:16:26 +0200 |
commit | 707cc94fe52463870a9c6c8e2e66eaaa389e601d (patch) | |
tree | 13e10ff28bf4455d915f9d59b401bdbb62a393cb /libxsde/xsde/cxx/qname-stl.ixx |
Start tracking XSD/e with git after version 3.0.03.0.0
Diffstat (limited to 'libxsde/xsde/cxx/qname-stl.ixx')
-rw-r--r-- | libxsde/xsde/cxx/qname-stl.ixx | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/libxsde/xsde/cxx/qname-stl.ixx b/libxsde/xsde/cxx/qname-stl.ixx new file mode 100644 index 0000000..f4122e5 --- /dev/null +++ b/libxsde/xsde/cxx/qname-stl.ixx @@ -0,0 +1,82 @@ +// file : xsde/cxx/qname-stl.ixx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2005-2009 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +namespace xsde +{ + namespace cxx + { + inline qname:: + qname () + { + } + + inline qname:: + qname (const std::string& name) + : prefix_ (), name_ (name) + { + } + + inline qname:: + qname (const std::string& prefix, const std::string& name) + : prefix_ (prefix), name_ (name) + { + } + + inline void qname:: + swap (qname& x) + { + prefix_.swap (x.prefix_); + name_.swap (x.name_); + } + + inline const std::string& qname:: + prefix () const + { + return prefix_; + } + + inline std::string& qname:: + prefix () + { + return prefix_; + } + + inline void qname:: + prefix (const std::string& prefix) + { + prefix_ = prefix; + } + + inline const std::string& qname:: + name () const + { + return name_; + } + + inline std::string& qname:: + name () + { + return name_; + } + + inline void qname:: + name (const std::string& name) + { + name_ = name; + } + + inline bool + operator== (const qname& x, const qname& y) + { + return x.name () == y.name () && x.prefix () == y.prefix (); + } + + inline bool + operator!= (const qname& x, const qname& y) + { + return !(x == y); + } + } +} |