SUMO - Simulation of Urban MObility
TraCIServerAPI_VehicleType.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 vehicle type values via TraCI
19 /****************************************************************************/
20 #ifndef TraCIServerAPI_VehicleType_h
21 #define TraCIServerAPI_VehicleType_h
22 
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 "TraCIServer.h"
36 #include <foreign/tcpip/storage.h>
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
47 public:
54  static bool processGet(TraCIServer& server, tcpip::Storage& inputStorage,
55  tcpip::Storage& outputStorage);
56 
57 
64  static bool getVariable(const int variable, const std::string& v, tcpip::Storage& tempMsg);
65 
66 
73  static bool processSet(TraCIServer& server, tcpip::Storage& inputStorage,
74  tcpip::Storage& outputStorage);
75 
76 
79  static bool setVariable(const int cmd, const int variable,
80  const std::string& id, TraCIServer& server,
81  tcpip::Storage& inputStorage, tcpip::Storage& outputStorage);
82 
83 
84 private:
87 
90 
91 
92 };
93 
94 
95 #endif
96 
97 #endif
98 
99 /****************************************************************************/
100 
static bool getVariable(const int variable, const std::string &v, tcpip::Storage &tempMsg)
Processes a value request for the given type.
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xa5: Get Vehicle Type Variable)
TraCI server used to control sumo by a remote TraCI client.
Definition: TraCIServer.h:69
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xc5: Change Vehicle Type State)
static bool setVariable(const int cmd, const int variable, const std::string &id, TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value for the given type.
TraCIServerAPI_VehicleType & operator=(const TraCIServerAPI_VehicleType &s)
invalidated assignment operator
APIs for getting/setting vehicle type values via TraCI.
TraCIServerAPI_VehicleType(const TraCIServerAPI_VehicleType &s)
invalidated copy constructor