HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Environ.h
Go to the documentation of this file.
1 //
2 // Copyright Contributors to the MaterialX Project
3 // SPDX-License-Identifier: Apache-2.0
4 //
5 
6 #ifndef MATERIALX_ENVIRON_H
7 #define MATERIALX_ENVIRON_H
8 
9 /// @file
10 /// Cross-platform environment variable functionality
11 
12 #include <MaterialXCore/Library.h>
13 
14 #include <MaterialXFormat/Export.h>
15 
17 
18 /// Return the value of an environment variable by name
19 MX_FORMAT_API string getEnviron(const string& name);
20 
21 /// Set an environment variable to a specified value
22 MX_FORMAT_API bool setEnviron(const string& name, const string& value);
23 
24 /// Remove an environment variable by name
25 MX_FORMAT_API bool removeEnviron(const string& name);
26 
28 
29 #endif // MATERIALX_ENVIRON_H
MX_FORMAT_API bool removeEnviron(const string &name)
Remove an environment variable by name.
#define MATERIALX_NAMESPACE_BEGIN
Definition: Generated.h:25
MX_FORMAT_API bool setEnviron(const string &name, const string &value)
Set an environment variable to a specified value.
#define MX_FORMAT_API
Definition: Export.h:18
MATERIALX_NAMESPACE_BEGIN MX_FORMAT_API string getEnviron(const string &name)
Return the value of an environment variable by name.
GLuint const GLchar * name
Definition: glcorearb.h:786
Definition: core.h:1131
#define MATERIALX_NAMESPACE_END
Definition: Generated.h:26