Revision 111, 1.2 kB
(checked in by mido, 17 years ago)
|
pridana knihovna XSD (a jeji chlebodarkyne XERCES), v ramci Win32 zprovoznen priklad tests/test_xsd_hello.cxx
|
Line | |
---|
1 | // file : xsd/cxx/parser/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 | // error |
---|
13 | // |
---|
14 | template <typename C> |
---|
15 | error<C>:: |
---|
16 | error (cxx::parser::severity s, |
---|
17 | const std::basic_string<C>& id, |
---|
18 | unsigned long line, |
---|
19 | unsigned long column, |
---|
20 | const std::basic_string<C>& message) |
---|
21 | : severity_ (s), |
---|
22 | id_ (id), |
---|
23 | line_ (line), |
---|
24 | column_ (column), |
---|
25 | message_ (message) |
---|
26 | { |
---|
27 | } |
---|
28 | |
---|
29 | |
---|
30 | // parsing |
---|
31 | // |
---|
32 | template <typename C> |
---|
33 | parsing<C>:: |
---|
34 | ~parsing () throw () |
---|
35 | { |
---|
36 | } |
---|
37 | |
---|
38 | template <typename C> |
---|
39 | parsing<C>:: |
---|
40 | parsing () |
---|
41 | { |
---|
42 | } |
---|
43 | |
---|
44 | template <typename C> |
---|
45 | parsing<C>:: |
---|
46 | parsing (const cxx::parser::diagnostics<C>& diagnostics) |
---|
47 | : diagnostics_ (diagnostics) |
---|
48 | { |
---|
49 | } |
---|
50 | |
---|
51 | template <typename C> |
---|
52 | const char* parsing<C>:: |
---|
53 | what () const throw () |
---|
54 | { |
---|
55 | return "instance document parsing failed"; |
---|
56 | } |
---|
57 | } |
---|
58 | } |
---|
59 | } |
---|