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_H 19 #define ZORBA_SCHEMA_TYPES_H 20 21 #include "binary.h" 22 #include "decimal.h" 23 #include "floatimpl.h" 24 #include "integer.h" 25 #include "schema_types_base.h" 26 27 namespace zorba { 28 29 /////////////////////////////////////////////////////////////////////////////// 30 31 // 32 // Mapping of Zorba C++ classes to XML schema types. 33 // 34 typedef Base64 xs_base64Binary; 35 typedef DateTime xs_date; 36 typedef DateTime xs_dateTime; 37 typedef Duration xs_dayTimeDuration; 38 typedef Decimal xs_decimal; 39 typedef Double xs_double; 40 typedef Duration xs_duration; 41 typedef Float xs_float; 42 typedef DateTime xs_gDay; 43 typedef DateTime xs_gMonth; 44 typedef DateTime xs_gMonthDay; 45 typedef DateTime xs_gYear; 46 typedef DateTime xs_gYearMonth; 47 typedef Base16 xs_hexBinary; 48 typedef Integer xs_integer; 49 typedef Integer xs_negativeInteger; // this isn't quite right 50 typedef UInteger xs_nonNegativeInteger; // i.e., "unsigned" 51 typedef Integer xs_nonPositiveInteger; // this isn't quite right either 52 typedef UInteger xs_positiveInteger; 53 typedef DateTime xs_time; 54 typedef UInteger xs_uinteger; // old, deprecated name 55 typedef Duration xs_yearMonthDuration; 56 57 /////////////////////////////////////////////////////////////////////////////// 58 59 } // namespace zorba 60 #endif /* ZORBA_SCHEMA_TYPES_H */ 61 /* vim:set et sw=2 ts=2: */ 62