SUMO - Simulation of Urban MObility
TraCIServerAPI_GUI.h
Go to the documentation of this file.
00001 /****************************************************************************/
00008 // APIs for getting/setting GUI values via TraCI
00009 /****************************************************************************/
00010 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00011 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
00012 /****************************************************************************/
00013 //
00014 //   This file is part of SUMO.
00015 //   SUMO is free software: you can redistribute it and/or modify
00016 //   it under the terms of the GNU General Public License as published by
00017 //   the Free Software Foundation, either version 3 of the License, or
00018 //   (at your option) any later version.
00019 //
00020 /****************************************************************************/
00021 #ifndef TraCIServerAPI_GUI_h
00022 #define TraCIServerAPI_GUI_h
00023 
00024 
00025 // ===========================================================================
00026 // included modules
00027 // ===========================================================================
00028 #ifdef _MSC_VER
00029 #include <windows_config.h>
00030 #else
00031 #include <config.h>
00032 #endif
00033 
00034 #ifndef NO_TRACI
00035 
00036 #include <string>
00037 #include <traci-server/TraCIException.h>
00038 #include <traci-server/TraCIServer.h>
00039 #include <foreign/tcpip/storage.h>
00040 
00041 
00042 // ===========================================================================
00043 // class definitions
00044 // ===========================================================================
00045 class GUIGlChildWindow;
00046 
00047 
00048 // ===========================================================================
00049 // class definitions
00050 // ===========================================================================
00055 class TraCIServerAPI_GUI {
00056 public:
00063     static bool processGet(traci::TraCIServer& server, tcpip::Storage& inputStorage,
00064                            tcpip::Storage& outputStorage) throw(traci::TraCIException, std::invalid_argument);
00065 
00066 
00073     static bool processSet(traci::TraCIServer& server, tcpip::Storage& inputStorage,
00074                            tcpip::Storage& outputStorage) throw(traci::TraCIException, std::invalid_argument);
00075 
00076 
00077 protected:
00081     static GUIMainWindow* getMainWindow() ;
00082 
00083 
00088     static GUISUMOAbstractView* const getNamedView(const std::string& id) ;
00089 
00090 private:
00092     TraCIServerAPI_GUI(const TraCIServerAPI_GUI& s);
00093 
00095     TraCIServerAPI_GUI& operator=(const TraCIServerAPI_GUI& s);
00096 
00097 
00098 };
00099 
00100 
00101 #endif
00102 
00103 #endif
00104 
00105 /****************************************************************************/
00106 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines