Thanks to visit codestin.com
Credit goes to sourceforge.net

Menu

[31e5cd]: / src / Properties.hh  Maximize  Restore  History

Download this file

37 lines (28 with data), 940 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
/*
* 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 <iostream>
#include <map>
#include <string>
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);
};
} // namespace log4cpp
#endif // _LOG4CPP_PROPERTIES_HH