GridGain C++
ignite_product_version.h
Go to the documentation of this file.
1
/*
2
* Copyright 2019 GridGain Systems, Inc. and Contributors.
3
*
4
* Licensed under the GridGain Community Edition License (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
* https://www.gridgain.com/products/software/community-edition/gridgain-community-edition-license
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
22
#ifndef _IGNITE_IGNITE_PRODUCT_VERSION
23
#define _IGNITE_IGNITE_PRODUCT_VERSION
24
25
#include <stdint.h>
26
#include <vector>
27
28
#include <
ignite/ignite_error.h
>
29
30
namespace
ignite
31
{
35
struct
IgniteProductVersion
36
{
38
int8_t
majorNumber
;
39
41
int8_t
minorNumber
;
42
44
int8_t
maintenance
;
45
47
std::string
stage
;
48
50
int64_t
releaseDate
;
51
53
std::vector<int8_t>
revHash
;
54
56
static
const
int
SHA1_LENGTH
= 20;
57
61
IgniteProductVersion
(int8_t
majorNumber
, int8_t
minorNumber
, int8_t
maintenance
, std::string
stage
, int64_t
releaseDate
, std::vector<int8_t>
revHash
) :
62
majorNumber
(
majorNumber
),
minorNumber
(
minorNumber
),
maintenance
(
maintenance
),
stage
(
stage
),
releaseDate
(
releaseDate
),
revHash
(
revHash
)
63
{
64
assert(
revHash
.size() ==
SHA1_LENGTH
);
65
}
66
};
67
}
68
69
#endif //_IGNITE_IGNITE_PRODUCT_VERSION
ignite
Ignite API.
Definition:
cache.h:47
ignite::IgniteProductVersion
Ignite product version.
Definition:
ignite_product_version.h:35
ignite::IgniteProductVersion::minorNumber
int8_t minorNumber
Minor version number.
Definition:
ignite_product_version.h:41
ignite::IgniteProductVersion::stage
std::string stage
Stage of development.
Definition:
ignite_product_version.h:47
ignite::IgniteProductVersion::maintenance
int8_t maintenance
Maintenance version number.
Definition:
ignite_product_version.h:44
ignite::IgniteProductVersion::IgniteProductVersion
IgniteProductVersion(int8_t majorNumber, int8_t minorNumber, int8_t maintenance, std::string stage, int64_t releaseDate, std::vector< int8_t > revHash)
Default constructor.
Definition:
ignite_product_version.h:61
ignite::IgniteProductVersion::releaseDate
int64_t releaseDate
Release date.
Definition:
ignite_product_version.h:50
ignite_error.h
ignite::IgniteProductVersion::revHash
std::vector< int8_t > revHash
Revision hash.
Definition:
ignite_product_version.h:53
ignite::IgniteProductVersion::SHA1_LENGTH
static const int SHA1_LENGTH
SHA1 Length.
Definition:
ignite_product_version.h:56
ignite::IgniteProductVersion::majorNumber
int8_t majorNumber
Major version number.
Definition:
ignite_product_version.h:38
Generated on Fri Mar 14 2025 10:39:18 for GridGain C++ by
1.8.17