7#ifndef PXR_BASE_TF_GETENV_H
8#define PXR_BASE_TF_GETENV_H
15#include "pxr/base/tf/api.h"
19PXR_NAMESPACE_OPEN_SCOPE
30std::string
TfGetenv(
const std::string& envName,
31 const std::string& defaultValue =
"");
66PXR_NAMESPACE_CLOSE_SCOPE
TF_API bool TfGetenvBool(const std::string &, bool defaultValue)
Return an environment variable as a boolean.
TF_API int TfGetenvInt(const std::string &envName, int defaultValue)
Return an environment variable as an integer.
TF_API double TfGetenvDouble(const std::string &envName, double defaultValue)
Return an environment variable as a double.
TF_API std::string TfGetenv(const std::string &envName, const std::string &defaultValue="")
Return an environment variable as a string.