Debian Codegraph @

cutl/xml/qname.cxx

raw
1 // file : cutl/xml/qname.cxx
2 // copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
3 // license : MIT; see accompanying LICENSE file
4
5 #include <ostream>
6
7 #include <cutl/xml/qname.hxx>
8
9 using namespace std;
10
11 namespace cutl
12 {
13 namespace xml
14 {
15 string qname::
16 string () const
17 {
18 std::string r;
19 if (!ns_.empty ())
20 {
21 r += ns_;
22 r += '#';
23 }
24
25 r += name_;
26 return r;
27 }
28
29 ostream&
30 operator<< (ostream& os, const qname& qn)
31 {
32 return os << qn.string ();
33 }
34 }
35 }