1 /* 2 * Copyright 2006-2008 The FLWOR Foundation. 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 #pragma once 18 #ifndef ZORBA_SCHEMA_TYPES_BASE_H 19 #define ZORBA_SCHEMA_TYPES_BASE_H 20 21 #include "zorbamisc/config/stdint.h" 22 23 #include "zstring.h" 24 25 namespace zorba { 26 27 /////////////////////////////////////////////////////////////////////////////// 28 29 // 30 // Mapping of built-in C++ language types (plus zstring) to XML schema types. 31 // 32 typedef zstring xs_anyURI; 33 typedef bool xs_boolean; 34 typedef int8_t xs_byte; 35 typedef zstring xs_ENTITIES; 36 typedef zstring xs_ENTITY; 37 typedef zstring xs_ID; 38 typedef zstring xs_IDREF; 39 typedef zstring xs_IDREFS; 40 typedef int32_t xs_int; 41 typedef zstring xs_language; 42 typedef int64_t xs_long; 43 typedef zstring xs_Name; 44 typedef zstring xs_NCName; 45 typedef zstring xs_NMTOKEN; 46 typedef zstring xs_NMTOKENS; 47 typedef zstring xs_normalizedString; 48 typedef zstring xs_NOTATION; 49 typedef zstring xs_QName; 50 typedef int16_t xs_short; 51 typedef zstring xs_string; 52 typedef zstring xs_token; 53 typedef uint8_t xs_unsignedByte; 54 typedef uint32_t xs_unsignedInt; 55 typedef uint64_t xs_unsignedLong; 56 typedef uint16_t xs_unsignedShort; 57 58 /////////////////////////////////////////////////////////////////////////////// 59 60 } // namespace zorba 61 #endif /* ZORBA_SCHEMA_TYPES_BASE_H */ 62 /* vim:set et sw=2 ts=2: */ 63