Imported Upstream version 1.8.0
[platform/core/ml/nnfw.git] / compiler / vconone / include / vconone / vconone.h
1 /*
2  * Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (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  *    http://www.apache.org/licenses/LICENSE-2.0
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
17 #ifndef __VCON_ONE_H__
18 #define __VCON_ONE_H__
19
20 #include <cstdint>
21 #include <string>
22
23 namespace vconone
24 {
25
26 struct four
27 {
28   uint16_t major;
29   uint16_t minor;
30   uint16_t patch;
31   uint16_t build; // build is not used for now
32 };
33
34 union version {
35   uint64_t v;
36   four f;
37 };
38
39 /**
40  * @brief get_number will return version union structure
41  */
42 version get_number(void);
43
44 /**
45  * @brief get_string will return string of major.minor.patch (without build)
46  */
47 std::string get_string(void);
48
49 /**
50  * @brief get_string4 will return string of major.minor.patch.build
51  */
52 std::string get_string4(void);
53
54 /**
55  * @brief get_copyright will return copyright string
56  */
57 std::string get_copyright(void);
58
59 } // namespace vconone
60
61 #endif // __VCON_ONE_H__