15
15
#endif
16
16
17
17
#include < cstdint>
18
- #include < ngraph/ngraph_visibility.hpp>
19
18
#include < string>
20
19
21
- #include " ngraph/deprecated.hpp"
20
+ #include " openvino/core/core_visibility.hpp"
21
+ #include " openvino/core/deprecated.hpp"
22
22
23
23
namespace ngraph {
24
24
// / \brief Get the names environment variable as a string.
25
25
// / \param env_var The string name of the environment variable to get.
26
26
// / \return Returns string by value or an empty string if the environment
27
27
// / variable is not set.
28
- NGRAPH_API_DEPRECATED NGRAPH_API std::string getenv_string (const char * env_var);
28
+ OPENVINO_DEPRECATED (" The nGraph API is deprecated and will be removed in the 2024.0 release. "
29
+ " For instructions on transitioning to the new API, please refer to "
30
+ " https://docs.openvino.ai/latest/openvino_2_0_transition_guide.html" )
31
+ OPENVINO_API std::string getenv_string (const char * env_var);
29
32
30
33
// / \brief Get the names environment variable as an integer. If the value is not a
31
34
// / valid integer then an exception is thrown.
32
35
// / \param env_var The string name of the environment variable to get.
33
36
// / \param default_value The value to return if the environment variable is not set.
34
37
// / \return Returns value or default_value if the environment variable is not set.
35
- NGRAPH_API_DEPRECATED NGRAPH_API int32_t getenv_int (const char * env_var, int32_t default_value = -1 );
38
+ OPENVINO_DEPRECATED (" The nGraph API is deprecated and will be removed in the 2024.0 release. "
39
+ " For instructions on transitioning to the new API, please refer to "
40
+ " https://docs.openvino.ai/latest/openvino_2_0_transition_guide.html" )
41
+ OPENVINO_API int32_t getenv_int (const char * env_var, int32_t default_value = -1 );
36
42
37
43
// / \brief Get the names environment variable as a boolean. If the value is not a
38
44
// / valid boolean then an exception is thrown. Valid booleans are one of
@@ -42,5 +48,8 @@ NGRAPH_API_DEPRECATED NGRAPH_API int32_t getenv_int(const char* env_var, int32_t
42
48
// / \param env_var The string name of the environment variable to get.
43
49
// / \param default_value The value to return if the environment variable is not set.
44
50
// / \return Returns the boolean value of the environment variable.
45
- NGRAPH_API_DEPRECATED NGRAPH_API bool getenv_bool (const char * env_var, bool default_value = false );
51
+ OPENVINO_DEPRECATED (" The nGraph API is deprecated and will be removed in the 2024.0 release. "
52
+ " For instructions on transitioning to the new API, please refer to "
53
+ " https://docs.openvino.ai/latest/openvino_2_0_transition_guide.html" )
54
+ OPENVINO_API bool getenv_bool (const char * env_var, bool default_value = false );
46
55
} // namespace ngraph
0 commit comments