FactoryParams.cpp
Go to the documentation of this file.
00001 #include <log4cpp/FactoryParams.hh>
00002 #include <stdexcept>
00003 
00004 namespace log4cpp
00005 {
00006    const std::string& FactoryParams::operator[](const std::string& v) const
00007    {
00008       const_iterator i = storage_.find(v);
00009       if (i != storage_.end())
00010          return i->second;
00011 
00012       throw std::invalid_argument("There is no parameter '" + v + "'");
00013    }
00014    
00015    FactoryParams::const_iterator FactoryParams::find(const std::string& v) const
00016    {
00017       return storage_.find(v);
00018    }
00019 }
00020 


log4cpp
Author(s): Stephen Roderick
autogenerated on Mon Oct 6 2014 03:13:14