summaryrefslogtreecommitdiff
path: root/libxsd/xsd/cxx/parser/validating/exceptions.txx
blob: f8ffe80064c0ec985dd775170d0a6b514621d41d (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// file      : xsd/cxx/parser/validating/exceptions.txx
// 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 xsd
{
  namespace cxx
  {
    namespace parser
    {
      namespace validating
      {
        // expected_attribute
        //
        template <typename C>
        expected_attribute<C>::
        ~expected_attribute ()
        {
        }

        template <typename C>
        expected_attribute<C>::
        expected_attribute (const std::basic_string<C>& expected_namespace,
                            const std::basic_string<C>& expected_name)
            : expected_namespace_ (expected_namespace),
              expected_name_ (expected_name)
        {
        }

        // unexpected_attribute
        //
        template <typename C>
        unexpected_attribute<C>::
        ~unexpected_attribute ()
        {
        }

        template <typename C>
        unexpected_attribute<C>::
        unexpected_attribute (const std::basic_string<C>& encountered_namespace,
                              const std::basic_string<C>& encountered_name)
            : encountered_namespace_ (encountered_namespace),
              encountered_name_ (encountered_name)
        {
        }

        // unexpected_characters
        //
        template <typename C>
        unexpected_characters<C>::
        ~unexpected_characters ()
        {
        }

        template <typename C>
        unexpected_characters<C>::
        unexpected_characters (const std::basic_string<C>& s)
            : characters_ (s)
        {
        }

        // invalid_value
        //
        template <typename C>
        invalid_value<C>::
        ~invalid_value ()
        {
        }

        template <typename C>
        invalid_value<C>::
        invalid_value (const C* type,
                       const std::basic_string<C>& value)
            : type_ (type), value_ (value)
        {
        }

        template <typename C>
        invalid_value<C>::
        invalid_value (const C* type,
                       const ro_string<C>& value)
            : type_ (type), value_ (value)
        {
        }

        template <typename C>
        invalid_value<C>::
        invalid_value (const std::basic_string<C>& type,
                       const std::basic_string<C>& value)
            : type_ (type), value_ (value)
        {
        }
      }
    }
  }
}