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, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Aug 14 2016 03:18:26