24#ifndef PXR_BASE_TF_GETENV_H
25#define PXR_BASE_TF_GETENV_H
32#include "pxr/base/tf/api.h"
36PXR_NAMESPACE_OPEN_SCOPE
47std::string
TfGetenv(
const std::string& envName,
48 const std::string& defaultValue =
"");
83PXR_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.