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
37  ANY_NODE_TYPE, // node()
38  STRUCTURED_ITEM_TYPE, // structured-item
39 #ifdef ZORBA_WITH_JSON
40  JSON_ITEM_TYPE,
41  JSON_OBJECT_TYPE,
42  JSON_ARRAY_TYPE,
43 #endif
44  ITEM_TYPE, // item()
45  EMPTY_TYPE, // empty-sequence()
48  INVALID_TYPE
49  } kind_t;
50 
51  static char const *const kind_string_of[];
52 
53  typedef enum
54  {
58  QUANT_STAR
59  } quantifier_t;
60 
61  static char const *const quantifier_string_of[];
62 };
63 }
64 
65 namespace std {
66 
67 ZORBA_DLL_PUBLIC ostream& operator<<(ostream& o, const zorba::IdentTypes::kind_t ik);
68 ZORBA_DLL_PUBLIC ostream& operator<<(ostream& o, const zorba::IdentTypes::quantifier_t iq);
69 
70 }
71 
72 #endif
73 /* vim:set et sw=2 ts=2: */
blog comments powered by Disqus