Eclipse SUMO - Simulation of Urban MObility
TraCIServerAPI_Polygon.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 polygon values via TraCI
16 /****************************************************************************/
17 #ifndef TraCIServerAPI_Polygon_h
18 #define TraCIServerAPI_Polygon_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include "TraCIServer.h"
27 #include <foreign/tcpip/storage.h>
28 
29 
30 // ===========================================================================
31 // class definitions
32 // ===========================================================================
38 public:
45  static bool processGet(TraCIServer& server, tcpip::Storage& inputStorage,
46  tcpip::Storage& outputStorage);
47 
48 
55  static bool processSet(TraCIServer& server, tcpip::Storage& inputStorage,
56  tcpip::Storage& outputStorage);
57 
58 
59 private:
62 
65 
66 
67 };
68 
69 
70 #endif
71 
72 /****************************************************************************/
73 
TraCIServerAPI_Polygon
APIs for getting/setting polygon values via TraCI.
Definition: TraCIServerAPI_Polygon.h:37
TraCIServerAPI_Polygon::processSet
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xc8: Change Polygon State)
Definition: TraCIServerAPI_Polygon.cpp:74
TraCIServerAPI_Polygon::TraCIServerAPI_Polygon
TraCIServerAPI_Polygon(const TraCIServerAPI_Polygon &s)
invalidated copy constructor
TraCIServerAPI_Polygon::operator=
TraCIServerAPI_Polygon & operator=(const TraCIServerAPI_Polygon &s)
invalidated assignment operator
storage.h
TraCIServerAPI_Polygon::processGet
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xa8: Get Polygon Variable)
Definition: TraCIServerAPI_Polygon.cpp:41
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:38