Loading...
Searching...
No Matches
Properties.hh
Go to the documentation of this file.
/*
* Properties.hh
*
* Copyright 2002, Log4cpp Project. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef _LOG4SHIB_PROPERTIES_HH
#define _LOG4SHIB_PROPERTIES_HH
#include "PortabilityImpl.hh"
#include <string>
#include <iostream>
#include <map>
namespace log4shib {
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 // _LOG4SHIB_PROPERTIES_HH
PortabilityImpl.hh
log4shib::Properties::Properties
Properties()
Definition Properties.cpp:15
log4shib::Properties::_substituteVariables
virtual void _substituteVariables(std::string &value)
Definition Properties.cpp:98
log4shib::Properties::save
virtual void save(std::ostream &out)
Definition Properties.cpp:76
log4shib::Properties::getInt
virtual int getInt(const std::string &property, int defaultValue)
Definition Properties.cpp:82
log4shib::Properties::~Properties
virtual ~Properties()
Definition Properties.cpp:18
log4shib::Properties::load
virtual void load(std::istream &in)
Definition Properties.cpp:21
log4shib::Properties::getBool
virtual bool getBool(const std::string &property, bool defaultValue)
Definition Properties.cpp:87
log4shib::Properties::getString
virtual std::string getString(const std::string &property, const char *defaultValue)
Definition Properties.cpp:92
log4shib
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16