-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProperties.hh
More file actions
38 lines (29 loc) · 966 Bytes
/
Properties.hh
File metadata and controls
38 lines (29 loc) · 966 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
26
27
28
29
30
31
32
33
34
35
36
37
/*
* Properties.hh
*
* Copyright 2002, Log4cpp Project. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef _LOG4CPP_PROPERTIES_HH
#define _LOG4CPP_PROPERTIES_HH
#include "PortabilityImpl.hh"
#include <string>
#include <iostream>
#include <map>
namespace log4cpp {
class Properties : public std::map<std::string, std::string> {
public:
Properties();
virtual ~Properties();
virtual void load(std::istream& in);
virtual void save(std::ostream& out);
virtual int getInt(const std::string& property, int defaultValue);
virtual bool getBool(const std::string& property, bool defaultValue);
virtual std::string getString(const std::string& property,
const char* defaultValue);
protected:
virtual void _substituteVariables(std::string& value);
};
}
#endif // _LOG4CPP_PROPERTIES_HH