DRDE/ACTK1_0/common/SystemProperties.cpp

37 lines
774 B
C++
Raw Normal View History

#include "common/SystemProperties.hpp"
#include <iostream>
using namespace std;
namespace {
Properties properties;
}
void SystemProperties::init(const string& file)
{
2014-01-21 23:01:41 +00:00
//static string name = "biz.meansofproduction.dnseppus";
properties.load(file);
}
string SystemProperties::getProperty(const string &prop)
{
return properties.getProperty(prop);
}
string SystemProperties::getProperty(const string& prop, const string& def)
{
return properties.getProperty(prop, def);
}
vector<pair<string,string> > SystemProperties::getProperties(const string& prefix)
{
return properties.getProperties(prefix);
}
bool SystemProperties::getBooleanProperty(const string& prop, bool def)
{
return properties.getBooleanProperty(prop, def);
}