root/win32/xsd-3.1.0-i686/libxsd/xsd/cxx/xml/bits/literals.ixx @ 111

Revision 111, 3.7 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/xml/bits/literals.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#ifndef XSD_CXX_XML_BITS_LITERALS_IXX
7#define XSD_CXX_XML_BITS_LITERALS_IXX
8
9#endif // XSD_CXX_XML_BITS_LITERALS_IXX
10
11
12#if defined(XSD_USE_CHAR) || !defined(XSD_USE_WCHAR)
13
14#ifndef XSD_CXX_XML_BITS_LITERALS_IXX_CHAR
15#define XSD_CXX_XML_BITS_LITERALS_IXX_CHAR
16
17namespace xsd
18{
19  namespace cxx
20  {
21    namespace xml
22    {
23      namespace bits
24      {
25        template <>
26        inline const char*
27        xml_prefix<char> ()
28        {
29          return "xml";
30        }
31
32        template <>
33        inline const char*
34        xml_namespace<char> ()
35        {
36          return "http://www.w3.org/XML/1998/namespace";
37        }
38
39        template <>
40        inline const char*
41        xmlns_prefix<char> ()
42        {
43          return "xmlns";
44        }
45
46        template <>
47        inline const char*
48        xmlns_namespace<char> ()
49        {
50          return "http://www.w3.org/2000/xmlns/";
51        }
52
53        template <>
54        inline const char*
55        xsi_prefix<char> ()
56        {
57          return "xsi";
58        }
59
60        template <>
61        inline const char*
62        xsi_namespace<char> ()
63        {
64          return "http://www.w3.org/2001/XMLSchema-instance";
65        }
66
67        template <>
68        inline const char*
69        type<char> ()
70        {
71          return "type";
72        }
73
74        template <>
75        inline const char*
76        nil<char> ()
77        {
78          return "nil";
79        }
80
81        template <>
82        inline const char*
83        schema_location<char> ()
84        {
85          return "schemaLocation";
86        }
87
88        template <>
89        inline const char*
90        no_namespace_schema_location<char> ()
91        {
92          return "noNamespaceSchemaLocation";
93        }
94      }
95    }
96  }
97}
98
99#endif // XSD_CXX_XML_BITS_LITERALS_IXX_CHAR
100#endif // XSD_USE_CHAR
101
102
103#if defined(XSD_USE_WCHAR) || !defined(XSD_USE_CHAR)
104
105#ifndef XSD_CXX_XML_BITS_LITERALS_IXX_WCHAR
106#define XSD_CXX_XML_BITS_LITERALS_IXX_WCHAR
107
108namespace xsd
109{
110  namespace cxx
111  {
112    namespace xml
113    {
114      namespace bits
115      {
116        template <>
117        inline const wchar_t*
118        xml_prefix<wchar_t> ()
119        {
120          return L"xml";
121        }
122
123        template <>
124        inline const wchar_t*
125        xml_namespace<wchar_t> ()
126        {
127          return L"http://www.w3.org/XML/1998/namespace";
128        }
129
130        template <>
131        inline const wchar_t*
132        xmlns_prefix<wchar_t> ()
133        {
134          return L"xmlns";
135        }
136
137        template <>
138        inline const wchar_t*
139        xmlns_namespace<wchar_t> ()
140        {
141          return L"http://www.w3.org/2000/xmlns/";
142        }
143
144        template <>
145        inline const wchar_t*
146        xsi_prefix<wchar_t> ()
147        {
148          return L"xsi";
149        }
150
151        template <>
152        inline const wchar_t*
153        xsi_namespace<wchar_t> ()
154        {
155          return L"http://www.w3.org/2001/XMLSchema-instance";
156        }
157
158        template <>
159        inline const wchar_t*
160        type<wchar_t> ()
161        {
162          return L"type";
163        }
164
165        template <>
166        inline const wchar_t*
167        nil<wchar_t> ()
168        {
169          return L"nil";
170        }
171
172        template <>
173        inline const wchar_t*
174        schema_location<wchar_t> ()
175        {
176          return L"schemaLocation";
177        }
178
179        template <>
180        inline const wchar_t*
181        no_namespace_schema_location<wchar_t> ()
182        {
183          return L"noNamespaceSchemaLocation";
184        }
185      }
186    }
187  }
188}
189
190#endif // XSD_CXX_XML_BITS_LITERALS_IXX_WCHAR
191#endif // XSD_USE_WCHAR
Note: See TracBrowser for help on using the browser.