Incrementation of OCCT version up to 7.0.0dev
[occt.git] / src / Standard / Standard_Version.hxx
CommitLineData
b311480e 1// Created on: 2002-07-09
2// Created by: Andrey BETENEV
973c2be1 3// Copyright (c) 2002-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
b311480e 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
b311480e 15
7fd59977 16/*======================================================================
17//
7fd59977 18// Purpose: Defines macros identifying current version of Open CASCADE
19//
20// OCC_VERSION_MAJOR : (integer) number identifying major version
21// OCC_VERSION_MINOR : (integer) number identifying minor version
22// OCC_VERSION_MAINTENANCE : (integer) number identifying maintenance version
a0b4c5ea 23// OCC_VERSION_DEVELOPMENT : (string) if defined, indicates development or modified version
7fd59977 24// OCC_VERSION : (real) complete number (major.minor)
a0b4c5ea 25// OCC_VERSION_STRING : (string) short version number ("major.minor")
26// OCC_VERSION_COMPLETE : (string) complete version number ("major.minor.maintenance")
27// OCC_VERSION_STRING_EXT : (string) extended version ("major.minor.maintenance.development")
7fd59977 28// OCC_VERSION_HEX : (hex) complete number as hex, two positions per each of major, minor, and patch number
29//
30//======================================================================*/
31
32#ifndef _Standard_Version_HeaderFile
33#define _Standard_Version_HeaderFile
34
35// Primary definitions
32dd120d 36#define OCC_VERSION_MAJOR 7
37#define OCC_VERSION_MINOR 0
41ed1ed2 38#define OCC_VERSION_MAINTENANCE 0
7fd59977 39
a0b4c5ea 40//! This macro must be commented in official release, and set to non-empty
41//! string in other situations, to identify specifics of the version, e.g.:
42//! - "dev" for official (certified) version (master branch) between releases
43//! - "beta..." or "rc..." for beta releases or release candidates
44//! - "project..." for version containing project-specific fixes
32dd120d 45#define OCC_VERSION_DEVELOPMENT "dev"
7fd59977 46
a0b4c5ea 47// Derived (manually): version as real and string (major.minor)
32dd120d 48#define OCC_VERSION 7.0
49#define OCC_VERSION_STRING "7.0"
50#define OCC_VERSION_COMPLETE "7.0.0"
a0b4c5ea 51
52//! Derived: extended version as string ("major.minor.maintenance.dev")
53#ifdef OCC_VERSION_DEVELOPMENT
54#define OCC_VERSION_STRING_EXT OCC_VERSION_COMPLETE "." OCC_VERSION_DEVELOPMENT
55#else
56#define OCC_VERSION_STRING_EXT OCC_VERSION_COMPLETE
57#endif
58
59// Derived: complete version as hex (0x0'major'0'minor'0'maintenance')
7fd59977 60#define OCC_VERSION_HEX (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE)
61
62#endif /* _Standard_Version_HeaderFile */