log4cpp
1.1.6
Loading...
Searching...
No Matches
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 <iostream>
14
#include <map>
15
#include <string>
16
17
namespace
log4cpp
{
18
19
class
LOG4CPP_EXPORT
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
,
const
char
*
defaultValue
);
30
31
protected
:
32
virtual
void
_substituteVariables(std::string&
value
);
33
};
34
}
// namespace log4cpp
35
36
#endif
// _LOG4CPP_PROPERTIES_HH
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition
Export.hh:26
PortabilityImpl.hh
LOG4CPP_UNIQUE_PTR
#define LOG4CPP_UNIQUE_PTR
Definition
Portability.hh:75
log4cpp::Properties
Definition
Properties.hh:19
log4cpp
The top level namespace for all 'Log for C++' types and classes.
Definition
AbortAppender.hh:16
Generated by
1.10.0