gcc const fix, converted linefeeds
[shibboleth/cpp-xmltooling.git] / xmltooling / util / XMLConstants.h
1 /*
2  *  Copyright 2001-2006 Internet2
3  * 
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /**
18  * @file XMLConstants.h
19  * 
20  * Fundamental XML namespace constants 
21  */
22
23 #if !defined(__xmltooling_xmlconstants_h__)
24 #define __xmltooling_xmlconstants_h__
25
26 #include <xmltooling/unicode.h>
27
28 namespace xmltooling {
29     
30     /**
31      * XML related constants.
32      */
33     struct XMLTOOL_API XMLConstants
34     {
35         /**  XML core namespace ("http://www.w3.org/XML/1998/namespace") */
36         static const XMLCh XML_NS[]; 
37
38         /** XML namespace prefix for special xml attributes ("xml") */
39         static const XMLCh XML_PREFIX[];
40     
41         /**  XML namespace for xmlns attributes ("http://www.w3.org/2000/xmlns/") */
42         static const XMLCh XMLNS_NS[];
43         
44         /** XML namespace prefix for xmlns attributes ("xmlns") */
45         static const XMLCh XMLNS_PREFIX[];
46     
47         /**  XML Schema namespace ("http://www.w3.org/2001/XMLSchema") */
48         static const XMLCh XSD_NS[];
49         
50         /**  XML Schema QName prefix ("xs") */
51         static const XMLCh XSD_PREFIX[];
52     
53         /**  XML Schema Instance namespace ("http://www.w3.org/2001/XMLSchema-instance") */
54         static const XMLCh XSI_NS[];
55         
56         /**  XML Schema Instance QName prefix ("xsi") */
57         static const XMLCh XSI_PREFIX[];
58         
59         /**  XML Signature namespace ("http://www.w3.org/2000/09/xmldsig#") */
60         static const XMLCh XMLSIG_NS[];
61         
62         /**  XML Signature QName prefix ("ds") */
63         static const XMLCh XMLSIG_PREFIX[];
64         
65         /**  XML Encryption namespace ("http://www.w3.org/2001/04/xmlenc#") */
66         static const XMLCh XMLENC_NS[];
67         
68         /**  XML Encryption QName prefix ("xenc") */
69         static const XMLCh XMLENC_PREFIX[];
70         
71         /**  SOAP 1.1 Envelope XML namespace ("http://schemas.xmlsoap.org/soap/envelope/") */
72         static const XMLCh SOAP11ENV_NS[]; 
73
74         /**  SOAP 1.1 Envelope QName prefix ("S") */
75         static const XMLCh SOAP11ENV_PREFIX[];
76     
77         /**  XML Tooling namespace ("http://www.opensaml.org/xmltooling") */
78         static const XMLCh XMLTOOLING_NS[];
79
80         /**  XML "true" boolean constant */
81         static const XMLCh XML_TRUE[];
82
83         /**  XML "false" boolean constant */
84         static const XMLCh XML_FALSE[];
85
86         /**  XML "1" boolean constant */
87         static const XMLCh XML_ONE[];
88
89         /**  XML "0" boolean constant */
90         static const XMLCh XML_ZERO[];
91         
92         /** Enumerations of the different values of a boolean attribute or element */
93         enum xmltooling_bool_t {
94             XML_BOOL_NULL,
95             XML_BOOL_TRUE,
96             XML_BOOL_FALSE,
97             XML_BOOL_ONE,
98             XML_BOOL_ZERO
99         };
100     };
101
102 };
103
104 #endif /* __xmltooling_xmlconstants_h__ */