identtypes.h
Go to the documentation of this file.
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 #ifndef ZORBA_TYPEIDENT_TYPES_API_H
17 #define ZORBA_TYPEIDENT_TYPES_API_H
18 
19 #include <zorba/config.h>
20 #include <iostream>
21 
22 namespace zorba
23 {
24 
25 class ZORBA_DLL_PUBLIC IdentTypes
26 {
27 public:
28  typedef enum
29  {
30  NAMED_TYPE, // AtomicOrUnionType
38  ANY_NODE_TYPE, // node()
39  STRUCTURED_ITEM_TYPE, // structured-item
40 #ifdef ZORBA_WITH_JSON
41  JSON_ITEM_TYPE,
42  JSON_OBJECT_TYPE,
43  JSON_ARRAY_TYPE,
44 #endif
45  ITEM_TYPE, // item()
46  EMPTY_TYPE, // empty-sequence()
49  INVALID_TYPE
50  } kind_t;
51 
52  static char const *const kind_string_of[];
53 
54  typedef enum
55  {
59  QUANT_STAR
60  } quantifier_t;
61 
62  static char const *const quantifier_string_of[];
63 };
64 }
65 
66 namespace std {
67 
68 ZORBA_DLL_PUBLIC ostream& operator<<(ostream& o, const zorba::IdentTypes::kind_t ik);
69 ZORBA_DLL_PUBLIC ostream& operator<<(ostream& o, const zorba::IdentTypes::quantifier_t iq);
70 
71 }
72 
73 #endif
74 /* vim:set et sw=2 ts=2: */