aboutsummaryrefslogtreecommitdiff
path: root/libxsde/xsde/cxx/qname-stl.hxx
blob: b2ad0816e3bc0105626c829aba5f88e4543d8136 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// file      : xsde/cxx/qname-stl.hxx
// author    : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2005-2011 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