From d710e7dc5e8f3895f5d1aa6bd1db0ef3151af8ca Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 13 Sep 2008 04:39:42 +0200 Subject: Und wieder eine Umbenennungsorgie... --- src/Common/RequestManager.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'src/Common/RequestManager.h') diff --git a/src/Common/RequestManager.h b/src/Common/RequestManager.h index e7a8e7b..2ca10e7 100644 --- a/src/Common/RequestManager.h +++ b/src/Common/RequestManager.h @@ -20,20 +20,18 @@ #ifndef MAD_COMMON_REQUESTMANAGER_H_ #define MAD_COMMON_REQUESTMANAGER_H_ -#include "RequestHandler/RequestHandler.h" +#include "RequestHandler.h" #include #include namespace Mad { namespace Common { -namespace Request { class Request; -} class RequestManager { private: - class RequestMap : private std::map { + class RequestMap : private std::map { private: // Prevent shallow copy RequestMap(const RequestMap &o); @@ -46,11 +44,11 @@ class RequestManager { delete it->second; } - bool addRequest(uint16_t id, RequestHandler::RequestHandler *info) { + bool addRequest(uint16_t id, RequestHandler *info) { return insert(std::make_pair(id, info)).second; } - RequestHandler::RequestHandler* findRequest(uint16_t id); + RequestHandler* findRequest(uint16_t id); bool deleteRequest(uint16_t id); }; @@ -59,13 +57,13 @@ class RequestManager { RequestHandlerFactory() {} public: - virtual RequestHandler::RequestHandler* createRequestHandler() = 0; + virtual RequestHandler* createRequestHandler() = 0; virtual ~RequestHandlerFactory() {} }; template class SpecificRequestHandlerFactory : public RequestHandlerFactory { public: - virtual RequestHandler::RequestHandler* createRequestHandler() { + virtual RequestHandler* createRequestHandler() { return new T(); } }; @@ -95,7 +93,7 @@ class RequestManager { void unregisterPacketType(Net::Packet::Type type); - bool sendRequest(Net::Connection *connection, Request::Request *request); + bool sendRequest(Net::Connection *connection, Request *request); RequestManager(bool core); virtual ~RequestManager(); -- cgit v1.2.3