24 #ifndef PXR_BASE_TF_GETENV_H
25 #define PXR_BASE_TF_GETENV_H
32 #include "pxr/base/tf/api.h"
36 PXR_NAMESPACE_OPEN_SCOPE
47 std::string
TfGetenv(
const std::string& envName,
48 const std::string& defaultValue =
"");
58 int TfGetenvInt(
const std::string& envName,
int defaultValue);
68 bool TfGetenvBool(
const std::string&,
bool defaultValue);
79 double TfGetenvDouble(
const std::string& envName,
double defaultValue);
83 PXR_NAMESPACE_CLOSE_SCOPE
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.
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.