Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

robwxfe.h

00001 /*
00002  * robwxfe.h
00003  * 
00004  * Copyright (c) 2000-2004 by Florian Fischer (florianfischer@gmx.de)
00005  * and Martin Trautmann (martintrautmann@gmx.de) 
00006  * 
00007  * This file may be distributed and/or modified under the terms of the 
00008  * GNU General Public License version 2 as published by the Free Software 
00009  * Foundation. 
00010  * 
00011  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013  * 
00014  */
00015 
00016 // The Frontend class for visualization mode
00017 
00018 #ifndef __RT_ROBWXFE_H__
00019 #define __RT_ROBWXFE_H__
00020 
00021 #include <rtlist.h>
00022 
00023 #include "robfrontend.h"
00024 #include "robconsole.h"
00025 
00026 namespace rt {
00027 
00028 class BotErrorHandler {
00029 public:
00031         virtual void handleBotError(const Bot* affectedBot, ExecReturnType type) = 0;
00032 };
00033 
00034 class WxFrontend : public ConsoleFrontend {
00035 public:
00036         WxFrontend();
00037         ~WxFrontend();
00038 
00039         virtual void handleBotError(const Bot* affectedBot, ExecReturnType type) const;
00040         virtual void handleLoadError(const String& affectedFile, const String& message) const;
00041         virtual void handleSystemError(int num, const String& message) const;
00042         virtual void handleWarning(const String& message) const;
00043 
00044         void addBotErrorHandler(BotErrorHandler* handler);
00045         void removeBotErrorHandler(BotErrorHandler* handler);
00046 
00047 protected:
00048         virtual bool interpreteParamsImpl(const Array<String>& params, Array<bool>& used);
00049 
00050 private:
00051         lrt::List<BotErrorHandler*> botErrorHandlers;
00052 };
00053 
00054 
00055 } // NAMESPACE
00056 
00057 #endif //FILE

This is the RoboTour API documentation version 0.1 • Copyright (C) by Florian Fischer