From 766c56a693e8b1bd4293459bb256abdc0515a0b5 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 9 Jun 2009 19:01:02 +0200 Subject: Teile der Namespaces Common und Net in den neuen Namespace Core verschoben --- src/modules/FileLogger/FileLogger.cpp | 6 +++--- src/modules/FileLogger/FileLogger.h | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'src/modules/FileLogger') diff --git a/src/modules/FileLogger/FileLogger.cpp b/src/modules/FileLogger/FileLogger.cpp index 4655002..a78ab36 100644 --- a/src/modules/FileLogger/FileLogger.cpp +++ b/src/modules/FileLogger/FileLogger.cpp @@ -19,7 +19,7 @@ #include "FileLogger.h" -#include +#include namespace Mad { @@ -29,7 +29,7 @@ FileLogger::ConfigHelper FileLogger::configHelper; std::set FileLogger::loggers; -bool FileLogger::ConfigHelper::handleConfigEntry(const Common::ConfigEntry &entry, bool handled) { +bool FileLogger::ConfigHelper::handleConfigEntry(const Core::ConfigEntry &entry, bool handled) { if(handled) return false; @@ -40,7 +40,7 @@ bool FileLogger::ConfigHelper::handleConfigEntry(const Common::ConfigEntry &entr FileLogger *logger = new FileLogger(entry[0][1]); loggers.insert(logger); - Common::LogManager::get()->registerLogger(static_cast(logger)); + Core::LogManager::get()->registerLogger(static_cast(logger)); } else { Logger::logf(Logger::WARNING, "FileLogger: no filename given."); diff --git a/src/modules/FileLogger/FileLogger.h b/src/modules/FileLogger/FileLogger.h index 2def986..04e2126 100644 --- a/src/modules/FileLogger/FileLogger.h +++ b/src/modules/FileLogger/FileLogger.h @@ -20,20 +20,20 @@ #ifndef MAD_MODULES_FILELOGGER_H_ #define MAD_MODULES_FILELOGGER_H_ -#include -#include -#include +#include +#include +#include #include namespace Mad { namespace Modules { -class FileLogger : private Common::Logger, private Common::RemoteLogger { +class FileLogger : private Core::Logger, private Core::RemoteLogger { private: - class ConfigHelper : public Common::Configurable { + class ConfigHelper : public Core::Configurable { protected: - virtual bool handleConfigEntry(const Common::ConfigEntry &entry, bool handled); + virtual bool handleConfigEntry(const Core::ConfigEntry &entry, bool handled); public: virtual int getPriority() const {return 1;} @@ -57,11 +57,11 @@ class FileLogger : private Common::Logger, private Common::RemoteLogger { : file(filename.c_str(), std::ios::out|std::ios::app) {} static void registerConfigHelper() { - Common::ConfigManager::get()->registerConfigurable(&configHelper); + Core::ConfigManager::get()->registerConfigurable(&configHelper); } static void unregisterConfigHelper() { - Common::ConfigManager::get()->unregisterConfigurable(&configHelper); + Core::ConfigManager::get()->unregisterConfigurable(&configHelper); for(std::set::iterator logger = loggers.begin(); logger != loggers.end(); ++logger) { delete *logger; -- cgit v1.2.3