FactoryParams.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2002, Log4cpp Project. All rights reserved.
3  *
4  * See the COPYING file for the terms of usage and distribution.
5  */
6 
8 #include <stdexcept>
9 
10 namespace log4cpp
11 {
12  const std::string& FactoryParams::operator[](const std::string& v) const
13  {
14  const_iterator i = storage_.find(v);
15  if (i != storage_.end())
16  return i->second;
17 
18  throw std::invalid_argument("There is no parameter '" + v + "'");
19  }
20 
22  {
23  return storage_.find(v);
24  }
25 }
26 
storage_t::const_iterator const_iterator
const std::string & operator[](const std::string &v) const
const_iterator find(const std::string &t) const


log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:14:17