Menu

[2d617b]: / src / FactoryParams.cpp  Maximize  Restore  History

Download this file

27 lines (21 with data), 600 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
* Copyright 2002, Log4cpp Project. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#include <log4cpp/FactoryParams.hh>
#include <stdexcept>
namespace log4cpp
{
const std::string& FactoryParams::operator[](const std::string& v) const
{
const_iterator i = storage_.find(v);
if (i != storage_.end())
return i->second;
throw std::invalid_argument("There is no parameter '" + v + "'");
}
FactoryParams::const_iterator FactoryParams::find(const std::string& v) const
{
return storage_.find(v);
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.