| 1 | // file : xsd/cxx/parser/validating/exceptions.txx |
|---|
| 2 | // author : Boris Kolpackov <boris@codesynthesis.com> |
|---|
| 3 | // copyright : Copyright (c) 2005-2008 Code Synthesis Tools CC |
|---|
| 4 | // license : GNU GPL v2 + exceptions; see accompanying LICENSE file |
|---|
| 5 | |
|---|
| 6 | namespace xsd |
|---|
| 7 | { |
|---|
| 8 | namespace cxx |
|---|
| 9 | { |
|---|
| 10 | namespace parser |
|---|
| 11 | { |
|---|
| 12 | namespace validating |
|---|
| 13 | { |
|---|
| 14 | // expected_attribute |
|---|
| 15 | // |
|---|
| 16 | template <typename C> |
|---|
| 17 | expected_attribute<C>:: |
|---|
| 18 | ~expected_attribute () |
|---|
| 19 | { |
|---|
| 20 | } |
|---|
| 21 | |
|---|
| 22 | template <typename C> |
|---|
| 23 | expected_attribute<C>:: |
|---|
| 24 | expected_attribute (const std::basic_string<C>& expected_namespace, |
|---|
| 25 | const std::basic_string<C>& expected_name) |
|---|
| 26 | : expected_namespace_ (expected_namespace), |
|---|
| 27 | expected_name_ (expected_name) |
|---|
| 28 | { |
|---|
| 29 | } |
|---|
| 30 | |
|---|
| 31 | // unexpected_attribute |
|---|
| 32 | // |
|---|
| 33 | template <typename C> |
|---|
| 34 | unexpected_attribute<C>:: |
|---|
| 35 | ~unexpected_attribute () |
|---|
| 36 | { |
|---|
| 37 | } |
|---|
| 38 | |
|---|
| 39 | template <typename C> |
|---|
| 40 | unexpected_attribute<C>:: |
|---|
| 41 | unexpected_attribute (const std::basic_string<C>& encountered_namespace, |
|---|
| 42 | const std::basic_string<C>& encountered_name) |
|---|
| 43 | : encountered_namespace_ (encountered_namespace), |
|---|
| 44 | encountered_name_ (encountered_name) |
|---|
| 45 | { |
|---|
| 46 | } |
|---|
| 47 | |
|---|
| 48 | // unexpected_characters |
|---|
| 49 | // |
|---|
| 50 | template <typename C> |
|---|
| 51 | unexpected_characters<C>:: |
|---|
| 52 | ~unexpected_characters () |
|---|
| 53 | { |
|---|
| 54 | } |
|---|
| 55 | |
|---|
| 56 | template <typename C> |
|---|
| 57 | unexpected_characters<C>:: |
|---|
| 58 | unexpected_characters (const std::basic_string<C>& s) |
|---|
| 59 | : characters_ (s) |
|---|
| 60 | { |
|---|
| 61 | } |
|---|
| 62 | |
|---|
| 63 | // invalid_value |
|---|
| 64 | // |
|---|
| 65 | template <typename C> |
|---|
| 66 | invalid_value<C>:: |
|---|
| 67 | ~invalid_value () |
|---|
| 68 | { |
|---|
| 69 | } |
|---|
| 70 | |
|---|
| 71 | template <typename C> |
|---|
| 72 | invalid_value<C>:: |
|---|
| 73 | invalid_value (const C* type, |
|---|
| 74 | const std::basic_string<C>& value) |
|---|
| 75 | : type_ (type), value_ (value) |
|---|
| 76 | { |
|---|
| 77 | } |
|---|
| 78 | |
|---|
| 79 | template <typename C> |
|---|
| 80 | invalid_value<C>:: |
|---|
| 81 | invalid_value (const C* type, |
|---|
| 82 | const ro_string<C>& value) |
|---|
| 83 | : type_ (type), value_ (value) |
|---|
| 84 | { |
|---|
| 85 | } |
|---|
| 86 | |
|---|
| 87 | template <typename C> |
|---|
| 88 | invalid_value<C>:: |
|---|
| 89 | invalid_value (const std::basic_string<C>& type, |
|---|
| 90 | const std::basic_string<C>& value) |
|---|
| 91 | : type_ (type), value_ (value) |
|---|
| 92 | { |
|---|
| 93 | } |
|---|
| 94 | } |
|---|
| 95 | } |
|---|
| 96 | } |
|---|
| 97 | } |
|---|