Apache Ignite C++
ignite_product_version.h
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
23 #ifndef _IGNITE_IGNITE_PRODUCT_VERSION
24 #define _IGNITE_IGNITE_PRODUCT_VERSION
25 
26 #include <stdint.h>
27 #include <vector>
28 
29 #include <ignite/ignite_error.h>
30 
31 namespace ignite
32 {
37  {
39  int8_t majorNumber;
40 
42  int8_t minorNumber;
43 
45  int8_t maintenance;
46 
48  std::string stage;
49 
51  int64_t releaseDate;
52 
54  std::vector<int8_t> revHash;
55 
57  static const int SHA1_LENGTH = 20;
58 
62  IgniteProductVersion(int8_t majorNumber, int8_t minorNumber, int8_t maintenance, std::string stage, int64_t releaseDate, std::vector<int8_t> revHash) :
64  {
65  assert(revHash.size() == SHA1_LENGTH);
66  }
67  };
68 }
69 
70 #endif //_IGNITE_IGNITE_PRODUCT_VERSION
ignite
Apache Ignite API.
Definition: cache.h:48
ignite::IgniteProductVersion
Ignite product version.
Definition: ignite_product_version.h:36
ignite::IgniteProductVersion::minorNumber
int8_t minorNumber
Minor version number.
Definition: ignite_product_version.h:42
ignite::IgniteProductVersion::stage
std::string stage
Stage of development.
Definition: ignite_product_version.h:48
ignite::IgniteProductVersion::maintenance
int8_t maintenance
Maintenance version number.
Definition: ignite_product_version.h:45
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:62
ignite::IgniteProductVersion::releaseDate
int64_t releaseDate
Release date.
Definition: ignite_product_version.h:51
ignite_error.h
ignite::IgniteProductVersion::revHash
std::vector< int8_t > revHash
Revision hash.
Definition: ignite_product_version.h:54
ignite::IgniteProductVersion::SHA1_LENGTH
static const int SHA1_LENGTH
SHA1 Length.
Definition: ignite_product_version.h:57
ignite::IgniteProductVersion::majorNumber
int8_t majorNumber
Major version number.
Definition: ignite_product_version.h:39