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 class ZORBA_DLL_PUBLIC IdentTypes {
24 public:
25  typedef enum {
26  NAMED_TYPE, // builtin atomic type
33  ANY_NODE_TYPE, // node()
34  ITEM_TYPE, // item()
35  EMPTY_TYPE, // empty-sequence()
38  INVALID_TYPE
39  } kind_t;
40 
41  static char const *const kind_string_of[];
42 
43  typedef enum {
47  QUANT_STAR
48  } quantifier_t;
49 
50  static char const *const quantifier_string_of[];
51 };
52 }
53 
54 namespace std {
55 
56 ZORBA_DLL_PUBLIC ostream& operator<<(ostream& o, const zorba::IdentTypes::kind_t ik);
57 ZORBA_DLL_PUBLIC ostream& operator<<(ostream& o, const zorba::IdentTypes::quantifier_t iq);
58 
59 }
60 
61 #endif
62 /* vim:set et sw=2 ts=2: */
blog comments powered by Disqus