SUMO - Simulation of Urban MObility
TraCIServerAPI_Lane.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2009-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 /****************************************************************************/
19 // APIs for getting/setting lane values via TraCI
20 /****************************************************************************/
21 #ifndef TraCIServerAPI_Lane_h
22 #define TraCIServerAPI_Lane_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #ifndef NO_TRACI
35 
36 #include <foreign/tcpip/storage.h>
37 
38 
39 // ===========================================================================
40 // class declarations
41 // ===========================================================================
42 class TraCIServer;
43 
44 
45 // ===========================================================================
46 // class definitions
47 // ===========================================================================
53 public:
60  static bool processGet(TraCIServer& server, tcpip::Storage& inputStorage,
61  tcpip::Storage& outputStorage);
62 
63 
70  static bool processSet(TraCIServer& server, tcpip::Storage& inputStorage,
71  tcpip::Storage& outputStorage);
72 
73 
80  static bool getShape(const std::string& id, PositionVector& shape);
81 
82 
83 private:
86 
89 
90 
91 };
92 
93 
94 #endif
95 
96 #endif
97 
98 /****************************************************************************/
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xa3: Get Lane Variable)
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xc3: Change Lane State)
A list of positions.
TraCIServerAPI_Lane & operator=(const TraCIServerAPI_Lane &s)
invalidated assignment operator
TraCI server used to control sumo by a remote TraCI client.
Definition: TraCIServer.h:69
TraCIServerAPI_Lane(const TraCIServerAPI_Lane &s)
invalidated copy constructor
APIs for getting/setting lane values via TraCI.
static bool getShape(const std::string &id, PositionVector &shape)
Returns the named lane&#39;s shape.