| 45 | inline bool IsEnvInited() { return of::Singleton<of::EnvGlobalObjectsScope>::Get() != nullptr; } |
| 46 | |
| 47 | bool HasEnvVar(const std::string& key) { |
| 48 | const char* value = getenv(key.c_str()); |
| 49 | return value != nullptr; |
| 50 | } |
| 51 | |
| 52 | std::string GetEnvVar(const std::string& key, const std::string& default_value) { |
| 53 | const char* value = getenv(key.c_str()); |