Reworked int/bool attribute handling.
[shibboleth/cpp-xmltooling.git] / xmltooling / util / XMLConstants.h
index 1faf640..028c4b3 100644 (file)
@@ -70,6 +70,27 @@ namespace xmltooling {
         \r
         /**  XML Tooling namespace ("http://www.opensaml.org/xmltooling") */\r
         static const XMLCh XMLTOOLING_NS[];\r
+\r
+        /**  XML "true" boolean constant */\r
+        static const XMLCh XML_TRUE[];\r
+\r
+        /**  XML "false" boolean constant */\r
+        static const XMLCh XML_FALSE[];\r
+\r
+        /**  XML "1" boolean constant */\r
+        static const XMLCh XML_ONE[];\r
+\r
+        /**  XML "0" boolean constant */\r
+        static const XMLCh XML_ZERO[];\r
+        \r
+        /** Enumerations of the different values of a boolean attribute or element */\r
+        enum xmltooling_bool_t {\r
+            XML_BOOL_NULL,\r
+            XML_BOOL_TRUE,\r
+            XML_BOOL_FALSE,\r
+            XML_BOOL_ONE,\r
+            XML_BOOL_ZERO\r
+        };\r
     };\r
 \r
 };\r