Pixar Arch
Loading...
Searching...
No Matches
env.h
Go to the documentation of this file.
1// Copyright 2016 Pixar
2//
3// Licensed under the terms set forth in the LICENSE.txt file available at
4// https://openusd.org/license.
5//
6// Modified by Jeremy Retailleau.
7
8#ifndef PXR_ARCH_ENV_H
9#define PXR_ARCH_ENV_H
10
11#include "./api.h"
12
13#include <string>
14
15namespace pxr {
16
21ARCH_API
22bool
23ArchHasEnv(const std::string &name);
24
26ARCH_API
27std::string
28ArchGetEnv(const std::string &name);
29
31ARCH_API
32bool
33ArchSetEnv(const std::string &name, const std::string &value, bool overwrite);
34
36ARCH_API
37bool
38ArchRemoveEnv(const std::string &name);
39
41ARCH_API
42std::string
43ArchExpandEnvironmentVariables(const std::string& str);
44
46ARCH_API
47char**
49
50} // namespace pxr
51
52#endif // PXR_ARCH_ENV_H
ARCH_API char ** ArchEnviron()
Return an array of the environment variables.
ARCH_API std::string ArchGetEnv(const std::string &name)
Gets a value from the current environment identified by name.
ARCH_API bool ArchRemoveEnv(const std::string &name)
Removes an environment variable.
ARCH_API bool ArchHasEnv(const std::string &name)
Architecture dependent access to environment variables.
ARCH_API bool ArchSetEnv(const std::string &name, const std::string &value, bool overwrite)
Creates or modifies an environment variable.
ARCH_API std::string ArchExpandEnvironmentVariables(const std::string &str)
Expands environment variables in str.