Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
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
7
#include <
log4cpp/FactoryParams.hh
>
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
21
FactoryParams::const_iterator
FactoryParams::find
(
const
std::string& v)
const
22
{
23
return
storage_
.find(v);
24
}
25
}
26
FactoryParams.hh
log4cpp::FactoryParams::storage_
storage_t storage_
Definition:
FactoryParams.hh:65
log4cpp::FactoryParams::const_iterator
storage_t::const_iterator const_iterator
Definition:
FactoryParams.hh:68
log4cpp
Definition:
AbortAppender.hh:16
log4cpp::FactoryParams::operator[]
const std::string & operator[](const std::string &v) const
Definition:
FactoryParams.cpp:12
log4cpp::FactoryParams::find
const_iterator find(const std::string &t) const
Definition:
FactoryParams.cpp:21
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