mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 11:06:50 +01:00
sources for 1.3
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Environment.cpp
|
||||
//
|
||||
// $Id: //poco/1.2/Foundation/src/Environment.cpp#1 $
|
||||
// $Id: //poco/1.3/Foundation/src/Environment.cpp#1 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Core
|
||||
@@ -56,6 +56,15 @@ std::string Environment::get(const std::string& name)
|
||||
return EnvironmentImpl::getImpl(name);
|
||||
}
|
||||
|
||||
|
||||
std::string Environment::get(const std::string& name, const std::string& defaultValue)
|
||||
{
|
||||
if (has(name))
|
||||
return get(name);
|
||||
else
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
|
||||
bool Environment::has(const std::string& name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user