SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TraCIServerAPI_Edge.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // APIs for getting/setting edge values via TraCI
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
11 // Copyright (C) 2001-2016 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 #ifndef TraCIServerAPI_Edge_h
22 #define TraCIServerAPI_Edge_h
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #ifndef NO_TRACI
34 
35 #include "TraCIException.h"
36 #include "TraCIServer.h"
37 #include <foreign/tcpip/storage.h>
38 
39 
40 // ===========================================================================
41 // class definitions
42 // ===========================================================================
48 public:
55  static bool processGet(TraCIServer& server, tcpip::Storage& inputStorage,
56  tcpip::Storage& outputStorage);
57 
58 
65  static bool processSet(TraCIServer& server, tcpip::Storage& inputStorage,
66  tcpip::Storage& outputStorage);
67 
68 
74  static bool getShape(const std::string& id, PositionVector& shape);
75 
76 
77 private:
80 
83 
84 
85 };
86 
87 
88 #endif
89 
90 #endif
91 
92 /****************************************************************************/
93 
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:73
static bool getShape(const std::string &id, PositionVector &shape)
Returns the named edge's shape.
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xaa: Get Edge Variable)