Fixed linefeeds. *sigh*
This commit is contained in:
@@ -232,7 +232,7 @@ ConfigFile::~ConfigFile()
|
|||||||
|
|
||||||
void ConfigFile::fillBuffer() {
|
void ConfigFile::fillBuffer() {
|
||||||
|
|
||||||
boost::mutex::scoped_lock lock(m_configMutex);
|
boost::mutex::scoped_lock lock(m_configMutex);
|
||||||
|
|
||||||
size_t i;
|
size_t i;
|
||||||
string tempString("");
|
string tempString("");
|
||||||
@@ -261,7 +261,7 @@ void ConfigFile::fillBuffer() {
|
|||||||
|
|
||||||
void ConfigFile::writeBuffer() const {
|
void ConfigFile::writeBuffer() const {
|
||||||
|
|
||||||
boost::mutex::scoped_lock lock(m_configMutex);
|
boost::mutex::scoped_lock lock(m_configMutex);
|
||||||
|
|
||||||
//write buffer to disc if enabled
|
//write buffer to disc if enabled
|
||||||
if(!noWriteAccess) {
|
if(!noWriteAccess) {
|
||||||
@@ -290,7 +290,7 @@ void ConfigFile::writeBuffer() const {
|
|||||||
|
|
||||||
void ConfigFile::updateConfig(ConfigState myConfigState) {
|
void ConfigFile::updateConfig(ConfigState myConfigState) {
|
||||||
|
|
||||||
boost::mutex::scoped_lock lock(m_configMutex);
|
boost::mutex::scoped_lock lock(m_configMutex);
|
||||||
|
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
@@ -377,7 +377,7 @@ void ConfigFile::updateConfig(ConfigState myConfigState) {
|
|||||||
|
|
||||||
string ConfigFile::readConfigString(string varName) const
|
string ConfigFile::readConfigString(string varName) const
|
||||||
{
|
{
|
||||||
boost::mutex::scoped_lock lock(m_configMutex);
|
boost::mutex::scoped_lock lock(m_configMutex);
|
||||||
|
|
||||||
size_t i;
|
size_t i;
|
||||||
string tempString("");
|
string tempString("");
|
||||||
@@ -414,7 +414,7 @@ string ConfigFile::readConfigString(string varName) const
|
|||||||
|
|
||||||
int ConfigFile::readConfigInt(string varName) const
|
int ConfigFile::readConfigInt(string varName) const
|
||||||
{
|
{
|
||||||
boost::mutex::scoped_lock lock(m_configMutex);
|
boost::mutex::scoped_lock lock(m_configMutex);
|
||||||
|
|
||||||
size_t i;
|
size_t i;
|
||||||
string tempString("");
|
string tempString("");
|
||||||
@@ -460,7 +460,7 @@ int ConfigFile::readConfigInt(string varName) const
|
|||||||
|
|
||||||
void ConfigFile::writeConfigInt(string varName, int varCont)
|
void ConfigFile::writeConfigInt(string varName, int varCont)
|
||||||
{
|
{
|
||||||
boost::mutex::scoped_lock lock(m_configMutex);
|
boost::mutex::scoped_lock lock(m_configMutex);
|
||||||
|
|
||||||
size_t i;
|
size_t i;
|
||||||
string tempString;
|
string tempString;
|
||||||
@@ -477,7 +477,7 @@ void ConfigFile::writeConfigInt(string varName, int varCont)
|
|||||||
|
|
||||||
void ConfigFile::writeConfigString(string varName, string varCont)
|
void ConfigFile::writeConfigString(string varName, string varCont)
|
||||||
{
|
{
|
||||||
boost::mutex::scoped_lock lock(m_configMutex);
|
boost::mutex::scoped_lock lock(m_configMutex);
|
||||||
|
|
||||||
size_t i;
|
size_t i;
|
||||||
for (i=0; i<configBufferList.size(); i++) {
|
for (i=0; i<configBufferList.size(); i++) {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include <boost/thread.hpp>
|
#include <boost/thread.hpp>
|
||||||
|
|
||||||
enum ConfigState { NONEXISTING, OLD };
|
enum ConfigState { NONEXISTING, OLD };
|
||||||
enum ConfigType { CONFIG_TYPE_INT, CONFIG_TYPE_STRING };
|
enum ConfigType { CONFIG_TYPE_INT, CONFIG_TYPE_STRING };
|
||||||
@@ -51,7 +51,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
mutable boost::mutex m_configMutex;
|
mutable boost::mutex m_configMutex;
|
||||||
|
|
||||||
struct ConfigInfo
|
struct ConfigInfo
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user