diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-06-09 19:01:02 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-06-09 19:01:02 +0200 |
commit | 766c56a693e8b1bd4293459bb256abdc0515a0b5 (patch) | |
tree | da8e51003cf801344e22b0b2b2e28a48d6a8b74c /src/modules/FileLogger | |
parent | 452320b5ec31447a526735016fa07589cb848032 (diff) | |
download | mad-766c56a693e8b1bd4293459bb256abdc0515a0b5.tar mad-766c56a693e8b1bd4293459bb256abdc0515a0b5.zip |
Teile der Namespaces Common und Net in den neuen Namespace Core verschoben
Diffstat (limited to 'src/modules/FileLogger')
-rw-r--r-- | src/modules/FileLogger/FileLogger.cpp | 6 | ||||
-rw-r--r-- | src/modules/FileLogger/FileLogger.h | 16 |
2 files changed, 11 insertions, 11 deletions
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 <Common/ConfigEntry.h> +#include <Core/ConfigEntry.h> namespace Mad { @@ -29,7 +29,7 @@ FileLogger::ConfigHelper FileLogger::configHelper; std::set<FileLogger*> 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*>(logger)); + Core::LogManager::get()->registerLogger(static_cast<Logger*>(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 <Common/ConfigManager.h> -#include <Common/Configurable.h> -#include <Common/LogManager.h> +#include <Core/ConfigManager.h> +#include <Core/Configurable.h> +#include <Core/LogManager.h> #include <fstream> 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<FileLogger*>::iterator logger = loggers.begin(); logger != loggers.end(); ++logger) { delete *logger; |