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
version.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_VERSION_API_H
17
#define ZORBA_VERSION_API_H
18
19
#include <string>
20
21
#include <zorba/config.h>
22
23
namespace
zorba {
24
25
/**
26
* Provide access to the version of %Zorba that is used
27
*/
28
class
ZORBA_DLL_PUBLIC
Version
29
{
30
protected
:
31
static
int
theMajorVersion
;
32
static
int
theMinorVersion
;
33
static
int
thePatchVersion
;
34
35
public
:
36
/** \brief Get the major version
37
*/
38
static
int
39
getMajorVersion();
40
41
/** \brief Get the minor version
42
*/
43
static
int
44
getMinorVersion();
45
46
/** \brief Get the patch version
47
*/
48
static
int
49
getPatchVersion();
50
51
/** \brief Get the %Zorba version as std::string
52
*
53
* Form: MajorVersion.MinorVersion.PatchVersion
54
*/
55
static
std::string
56
getVersion();
57
58
};
59
60
/** \brief Write the result of calling aVersiongetVersion() to the given
61
* output stream.
62
*/
63
ZORBA_DLL_PUBLIC
64
std::ostream&
65
operator<<
(std::ostream&
os
,
const
Version
& aVersion);
66
67
68
}
/* end namespace zorba */
69
#endif
70
/* vim:set et sw=2 ts=2: */