Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
Properties.hh
Go to the documentation of this file.
1
/*
2
* Properties.hh
3
*
4
* Copyright 2002, Log4cpp Project. All rights reserved.
5
*
6
* See the COPYING file for the terms of usage and distribution.
7
*/
8
9
#ifndef _LOG4CPP_PROPERTIES_HH
10
#define _LOG4CPP_PROPERTIES_HH
11
12
#include "
PortabilityImpl.hh
"
13
#include <string>
14
#include <iostream>
15
#include <map>
16
17
namespace
log4cpp
{
18
19
class
Properties
:
public
std::map<std::string, std::string> {
20
public
:
21
Properties
();
22
virtual
~Properties
();
23
24
virtual
void
load
(std::istream& in);
25
virtual
void
save
(std::ostream& out);
26
27
virtual
int
getInt
(
const
std::string& property,
int
defaultValue);
28
virtual
bool
getBool
(
const
std::string& property,
bool
defaultValue);
29
virtual
std::string
getString
(
const
std::string& property,
30
const
char
* defaultValue);
31
32
protected
:
33
virtual
void
_substituteVariables
(std::string& value);
34
};
35
}
36
37
#endif // _LOG4CPP_PROPERTIES_HH
38
log4cpp::Properties::save
virtual void save(std::ostream &out)
Definition:
Properties.cpp:89
PortabilityImpl.hh
log4cpp
Definition:
AbortAppender.hh:16
log4cpp::Properties::_substituteVariables
virtual void _substituteVariables(std::string &value)
Definition:
Properties.cpp:111
log4cpp::Properties::Properties
Properties()
Definition:
Properties.cpp:15
log4cpp::Properties
Definition:
Properties.hh:19
log4cpp::Properties::getInt
virtual int getInt(const std::string &property, int defaultValue)
Definition:
Properties.cpp:95
log4cpp::Properties::load
virtual void load(std::istream &in)
Definition:
Properties.cpp:21
log4cpp::Properties::getString
virtual std::string getString(const std::string &property, const char *defaultValue)
Definition:
Properties.cpp:105
log4cpp::Properties::~Properties
virtual ~Properties()
Definition:
Properties.cpp:18
log4cpp::Properties::getBool
virtual bool getBool(const std::string &property, bool defaultValue)
Definition:
Properties.cpp:100
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:10:00