SUMO - Simulation of Urban MObility
TraCIServerAPI_Edge.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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
18 // APIs for getting/setting edge values via TraCI
19 /****************************************************************************/
20 #ifndef TraCIServerAPI_Edge_h
21 #define TraCIServerAPI_Edge_h
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #ifndef NO_TRACI
33 
34 #include "TraCIServer.h"
35 #include <foreign/tcpip/storage.h>
36 
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
46 public:
53  static bool processGet(TraCIServer& server, tcpip::Storage& inputStorage,
54  tcpip::Storage& outputStorage);
55 
56 
63  static bool processSet(TraCIServer& server, tcpip::Storage& inputStorage,
64  tcpip::Storage& outputStorage);
65 
66 
72  static bool getShape(const std::string& id, PositionVector& shape);
73 
74 
75 private:
78 
81 
82 
83 };
84 
85 
86 #endif
87 
88 #endif
89 
90 /****************************************************************************/
91 
APIs for getting/setting edge values via TraCI.
TraCIServerAPI_Edge & operator=(const TraCIServerAPI_Edge &s)
invalidated assignment operator
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xca: Change Edge State)
TraCIServerAPI_Edge(const TraCIServerAPI_Edge &s)
invalidated copy constructor
A list of positions.
TraCI server used to control sumo by a remote TraCI client.
Definition: TraCIServer.h:69
static bool getShape(const std::string &id, PositionVector &shape)
Returns the named edge&#39;s shape.
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xaa: Get Edge Variable)