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: */
static int thePatchVersion
Definition: version.h:33
Ossetian; Ossetic.
Definition: locale.h:157
static int theMajorVersion
Definition: version.h:31
Provide access to the version of Zorba that is used.
Definition: version.h:28
ZORBA_DLL_PUBLIC std::ostream & operator<<(std::ostream &os, const QueryLocation &aQuery)
static int theMinorVersion
Definition: version.h:32