sources for 1.3

This commit is contained in:
Guenter Obiltschnig
2006-11-17 16:21:51 +00:00
parent 7ff71d107f
commit 768642ae98
744 changed files with 6781 additions and 1036 deletions

View File

@@ -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)
{