Zorba
The XQuery Processor
Documentation
Live Demo
Modules
Download
Tools
Blog
Code
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
include
zorba
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
27
ELEMENT_TYPE
,
28
ATTRIBUTE_TYPE
,
29
DOCUMENT_TYPE
,
30
PI_TYPE
,
31
TEXT_TYPE
,
32
COMMENT_TYPE
,
33
ANY_NODE_TYPE
,
// node()
34
ITEM_TYPE
,
// item()
35
EMPTY_TYPE
,
// empty-sequence()
36
SCHEMA_ELEMENT_TYPE
,
37
SCHEMA_ATTRIBUTE_TYPE
,
38
INVALID_TYPE
39
} kind_t;
40
41
static
char
const
*
const
kind_string_of[];
42
43
typedef
enum
{
44
QUANT_ONE
,
45
QUANT_QUESTION
,
46
QUANT_PLUS
,
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: */
Please enable JavaScript to view the
comments powered by Disqus.
blog comments powered by
Disqus