Update of OCCT version
[occt.git] / src / Standard / Standard_Version.hxx
CommitLineData
b311480e 1// Created on: 2002-07-09
2// Created by: Andrey BETENEV
3// Copyright (c) 2002-2012 OPEN CASCADE SAS
4//
5// The content of this file is subject to the Open CASCADE Technology Public
6// License Version 6.5 (the "License"). You may not use the content of this file
7// except in compliance with the License. Please obtain a copy of the License
8// at http://www.opencascade.org and read it completely before using this file.
9//
10// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12//
13// The Original Code and all software distributed under the License is
14// distributed on an "AS IS" basis, without warranty of any kind, and the
15// Initial Developer hereby disclaims all such warranties, including without
16// limitation, any warranties of merchantability, fitness for a particular
17// purpose or non-infringement. Please see the License for the specific terms
18// and conditions governing the rights and limitations under the License.
19
7fd59977 20/*======================================================================
21//
7fd59977 22// Purpose: Defines macros identifying current version of Open CASCADE
23//
24// OCC_VERSION_MAJOR : (integer) number identifying major version
25// OCC_VERSION_MINOR : (integer) number identifying minor version
26// OCC_VERSION_MAINTENANCE : (integer) number identifying maintenance version
a0b4c5ea 27// OCC_VERSION_DEVELOPMENT : (string) if defined, indicates development or modified version
7fd59977 28// OCC_VERSION : (real) complete number (major.minor)
a0b4c5ea 29// OCC_VERSION_STRING : (string) short version number ("major.minor")
30// OCC_VERSION_COMPLETE : (string) complete version number ("major.minor.maintenance")
31// OCC_VERSION_STRING_EXT : (string) extended version ("major.minor.maintenance.development")
7fd59977 32// OCC_VERSION_HEX : (hex) complete number as hex, two positions per each of major, minor, and patch number
33//
34//======================================================================*/
35
36#ifndef _Standard_Version_HeaderFile
37#define _Standard_Version_HeaderFile
38
39// Primary definitions
40#define OCC_VERSION_MAJOR 6
41#define OCC_VERSION_MINOR 5
ca1372ec 42#define OCC_VERSION_MAINTENANCE 5
7fd59977 43
a0b4c5ea 44//! This macro must be commented in official release, and set to non-empty
45//! string in other situations, to identify specifics of the version, e.g.:
46//! - "dev" for official (certified) version (master branch) between releases
47//! - "beta..." or "rc..." for beta releases or release candidates
48//! - "project..." for version containing project-specific fixes
57ea2bf0 49#define OCC_VERSION_DEVELOPMENT "dev"
7fd59977 50
a0b4c5ea 51// Derived (manually): version as real and string (major.minor)
52#define OCC_VERSION 6.5
53#define OCC_VERSION_STRING "6.5"
ca1372ec 54#define OCC_VERSION_COMPLETE "6.5.5"
a0b4c5ea 55
56//! Derived: extended version as string ("major.minor.maintenance.dev")
57#ifdef OCC_VERSION_DEVELOPMENT
58#define OCC_VERSION_STRING_EXT OCC_VERSION_COMPLETE "." OCC_VERSION_DEVELOPMENT
59#else
60#define OCC_VERSION_STRING_EXT OCC_VERSION_COMPLETE
61#endif
62
63// Derived: complete version as hex (0x0'major'0'minor'0'maintenance')
7fd59977 64#define OCC_VERSION_HEX (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE)
65
66#endif /* _Standard_Version_HeaderFile */