All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Version.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file terralib/common/Version.cpp
22 
23  \brief Utility class for system versioning.
24 */
25 
26 // TerraLib
27 #include "../Version.h"
28 #include "Version.h"
29 
30 // STL
31 #include <cassert>
32 
34 {
35  return TERRALIB_VERSION_MAJOR;
36 }
37 
39 {
40  return TERRALIB_VERSION_MINOR;
41 }
42 
44 {
45  return TERRALIB_VERSION_PATCH;
46 }
47 
49 {
50  assert(TERRALIB_VERSION_STATUS);
51  return std::string(TERRALIB_VERSION_STATUS);
52 }
53 
55 {
56  assert(__DATE__ " " __TIME__);
57  return std::string(__DATE__ " " __TIME__);
58 }
59 
61 {
62  assert(TERRALIB_VERSION_STRING);
63  return std::string(TERRALIB_VERSION_STRING);
64 }
65 
67 {
68  return TERRALIB_VERSION;
69 }
70 
static std::string buildDate()
Definition: Version.cpp:54
static std::string asString()
Definition: Version.cpp:60
Utility class for system versioning.
static int majorNumber()
Definition: Version.cpp:33
static int patchNumber()
Definition: Version.cpp:43
static int minorNumber()
Definition: Version.cpp:38
static std::string releaseStatus()
Definition: Version.cpp:48
static int asInt()
Definition: Version.cpp:66