ie_version.hpp
Go to the documentation of this file.
1 // Copyright (C) 2018-2020 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 /**
6  * @brief A header file that provides versioning information for the inference engine shared library
7  *
8  * @file ie_version.hpp
9  */
10 #pragma once
11 
12 #include "ie_api.h"
13 
14 /**
15  * @brief Inference Engine C++ API
16  */
17 namespace InferenceEngine {
18 
19 /**
20  * @struct Version
21  * @brief Represents version information that describes plugins and the inference engine runtime library
22  */
23 #pragma pack(push, 1)
24 struct Version {
25  /**
26  * @brief An API version reflects the set of supported features
27  */
28  struct {
29  int major; //!< A major version
30  int minor; //!< A minor version
32  /**
33  * @brief A null terminated string with build number
34  */
35  const char* buildNumber;
36  /**
37  * @brief A null terminated description string
38  */
39  const char* description;
40 };
41 #pragma pack(pop)
42 
43 /**
44  * @brief Gets the current Inference Engine version
45  *
46  * @return The current Inference Engine version
47  */
48 INFERENCE_ENGINE_API(const Version*) GetInferenceEngineVersion() noexcept;
49 
50 } // namespace InferenceEngine
The macro defines a symbol import/export mechanism essential for Microsoft Windows(R) OS.
Inference Engine C++ API.
Definition: cldnn_config.hpp:15
const Version * GetInferenceEngineVersion() noexcept
Gets the current Inference Engine version.
Represents version information that describes plugins and the inference engine runtime library.
Definition: ie_version.hpp:24
int minor
A minor version.
Definition: ie_version.hpp:30
const char * buildNumber
A null terminated string with build number.
Definition: ie_version.hpp:35
struct InferenceEngine::Version::@4 apiVersion
An API version reflects the set of supported features.
const char * description
A null terminated description string.
Definition: ie_version.hpp:39
int major
A major version.
Definition: ie_version.hpp:29