Eclipse SUMO - Simulation of Urban MObility
TraCIServerAPI_GUI.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // APIs for getting/setting GUI values via TraCI
16 /****************************************************************************/
17 #ifndef TraCIServerAPI_GUI_h
18 #define TraCIServerAPI_GUI_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <string>
28 #include <foreign/tcpip/storage.h>
29 
30 
31 // ===========================================================================
32 // class definitions
33 // ===========================================================================
39 public:
46  static bool processGet(TraCIServer& server, tcpip::Storage& inputStorage,
47  tcpip::Storage& outputStorage);
48 
49 
56  static bool processSet(TraCIServer& server, tcpip::Storage& inputStorage,
57  tcpip::Storage& outputStorage);
58 
59 
60 protected:
65  static GUISUMOAbstractView* getNamedView(const std::string& id);
66 
67 
68 private:
71 
74 
75 
76 };
77 
78 
79 #endif
80 
81 /****************************************************************************/
82 
GUISUMOAbstractView
Definition: GUISUMOAbstractView.h:72
TraCIServerAPI_GUI::processSet
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xcc: Change GUI State)
Definition: TraCIServerAPI_GUI.cpp:129
TraCIServerAPI_GUI::processGet
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xac: Get GUI Variable)
Definition: TraCIServerAPI_GUI.cpp:43
TraCIServerAPI_GUI::TraCIServerAPI_GUI
TraCIServerAPI_GUI(const TraCIServerAPI_GUI &s)
invalidated copy constructor
TraCIServerAPI_GUI
APIs for getting/setting GUI values via TraCI.
Definition: TraCIServerAPI_GUI.h:38
TraCIServerAPI_GUI::operator=
TraCIServerAPI_GUI & operator=(const TraCIServerAPI_GUI &s)
invalidated assignment operator
storage.h
TraCIServerAPI_GUI::getNamedView
static GUISUMOAbstractView * getNamedView(const std::string &id)
Returns the named view.
Definition: TraCIServerAPI_GUI.cpp:239
TraCIServer.h
config.h
TraCIServer
TraCI server used to control sumo by a remote TraCI client.
Definition: TraCIServer.h:61
tcpip::Storage
Definition: storage.h:36