Pixar Arch 0.25.8
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 "pxr/arch/pxr.h"
12#include "pxr/arch/api.h"
13
14#include <string>
15
16ARCH_NAMESPACE_OPEN_SCOPE
17
22ARCH_API
23bool
24ArchHasEnv(const std::string &name);
25
27ARCH_API
28std::string
29ArchGetEnv(const std::string &name);
30
32ARCH_API
33bool
34ArchSetEnv(const std::string &name, const std::string &value, bool overwrite);
35
37ARCH_API
38bool
39ArchRemoveEnv(const std::string &name);
40
42ARCH_API
43std::string
44ArchExpandEnvironmentVariables(const std::string& str);
45
47ARCH_API
48char**
50
51ARCH_NAMESPACE_CLOSE_SCOPE
52
53#endif // PXR_ARCH_ENV_H
bool ArchRemoveEnv(const std::string &name)
Removes an environment variable.
char ** ArchEnviron()
Return an array of the environment variables.
std::string ArchGetEnv(const std::string &name)
Gets a value from the current environment identified by name.
bool ArchSetEnv(const std::string &name, const std::string &value, bool overwrite)
Creates or modifies an environment variable.
bool ArchHasEnv(const std::string &name)
Architecture dependent access to environment variables.
std::string ArchExpandEnvironmentVariables(const std::string &str)
Expands environment variables in str.