root/win32/xsd-3.1.0-i686/libxsd/xsd/cxx/parser/non-validating/xml-schema-pimpl.ixx @ 124

Revision 111, 2.6 kB (checked in by mido, 16 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/non-validating/xml-schema-pimpl.ixx
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#if defined(XSD_CXX_PARSER_USE_CHAR) || !defined(XSD_CXX_PARSER_USE_WCHAR)
7
8#ifndef XSD_CXX_PARSER_NON_VALIDATING_XML_SCHEMA_PIMPL_IXX_CHAR
9#define XSD_CXX_PARSER_NON_VALIDATING_XML_SCHEMA_PIMPL_IXX_CHAR
10
11namespace xsd
12{
13  namespace cxx
14  {
15    namespace parser
16    {
17      namespace non_validating
18      {
19        namespace bits
20        {
21          //
22          //
23          template<>
24          inline const char*
25          positive_inf<char> ()
26          {
27            return "INF";
28          }
29
30          template<>
31          inline const char*
32          negative_inf<char> ()
33          {
34            return "-INF";
35          }
36
37          template<>
38          inline const char*
39          nan<char> ()
40          {
41            return "NaN";
42          }
43
44          //
45          //
46          template<>
47          inline const char*
48          true_<char> ()
49          {
50            return "true";
51          }
52
53          template<>
54          inline const char*
55          one<char> ()
56          {
57            return "1";
58          }
59        }
60      }
61    }
62  }
63}
64
65#endif // XSD_CXX_PARSER_NON_VALIDATING_XML_SCHEMA_PIMPL_IXX_CHAR
66#endif // XSD_CXX_PARSER_USE_CHAR
67
68
69#if defined(XSD_CXX_PARSER_USE_WCHAR) || !defined(XSD_CXX_PARSER_USE_CHAR)
70
71#ifndef XSD_CXX_PARSER_NON_VALIDATING_XML_SCHEMA_PIMPL_IXX_WCHAR
72#define XSD_CXX_PARSER_NON_VALIDATING_XML_SCHEMA_PIMPL_IXX_WCHAR
73
74namespace xsd
75{
76  namespace cxx
77  {
78    namespace parser
79    {
80      namespace non_validating
81      {
82        namespace bits
83        {
84          //
85          //
86          template<>
87          inline const wchar_t*
88          positive_inf<wchar_t> ()
89          {
90            return L"INF";
91          }
92
93          template<>
94          inline const wchar_t*
95          negative_inf<wchar_t> ()
96          {
97            return L"-INF";
98          }
99
100          template<>
101          inline const wchar_t*
102          nan<wchar_t> ()
103          {
104            return L"NaN";
105          }
106
107          //
108          //
109          template<>
110          inline const wchar_t*
111          true_<wchar_t> ()
112          {
113            return L"true";
114          }
115
116          template<>
117          inline const wchar_t*
118          one<wchar_t> ()
119          {
120            return L"1";
121          }
122        }
123      }
124    }
125  }
126}
127
128#endif // XSD_CXX_PARSER_NON_VALIDATING_XML_SCHEMA_PIMPL_IXX_WCHAR
129#endif // XSD_CXX_PARSER_USE_WCHAR
Note: See TracBrowser for help on using the browser.