Eclipse 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-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 /****************************************************************************/
16 // APIs for getting/setting vehicle type values via TraCI
17 /****************************************************************************/
18 #ifndef TraCIServerAPI_VehicleType_h
19 #define TraCIServerAPI_VehicleType_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include "TraCIServer.h"
28 #include <foreign/tcpip/storage.h>
29 
30 
31 // ===========================================================================
32 // class definitions
33 // ===========================================================================
39 public:
46  static bool processGet(TraCIServer& server, tcpip::Storage& inputStorage,
47  tcpip::Storage& outputStorage);
48 
49 
56  static bool processSet(TraCIServer& server, tcpip::Storage& inputStorage,
57  tcpip::Storage& outputStorage);
58 
59 
62  static bool setVariable(const int cmd, const int variable,
63  const std::string& id, TraCIServer& server,
64  tcpip::Storage& inputStorage, tcpip::Storage& outputStorage);
65 
66 
67 private:
70 
73 
74 
75 };
76 
77 
78 #endif
79 
80 /****************************************************************************/
81 
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:62
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