Eclipse SUMO - Simulation of Urban MObility
TraCIServerAPI_VehicleType Class Reference

APIs for getting/setting vehicle type values via TraCI. More...

#include <TraCIServerAPI_VehicleType.h>

Static Public Member Functions

static bool processGet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a get value command (Command 0xa5: Get Vehicle Type Variable) More...
 
static bool processSet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a set value command (Command 0xc5: Change Vehicle Type State) More...
 
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. More...
 

Private Member Functions

TraCIServerAPI_VehicleTypeoperator= (const TraCIServerAPI_VehicleType &s)
 invalidated assignment operator More...
 
 TraCIServerAPI_VehicleType (const TraCIServerAPI_VehicleType &s)
 invalidated copy constructor More...
 

Detailed Description

APIs for getting/setting vehicle type values via TraCI.

Definition at line 35 of file TraCIServerAPI_VehicleType.h.

Constructor & Destructor Documentation

◆ TraCIServerAPI_VehicleType()

TraCIServerAPI_VehicleType::TraCIServerAPI_VehicleType ( const TraCIServerAPI_VehicleType s)
private

invalidated copy constructor

Member Function Documentation

◆ operator=()

TraCIServerAPI_VehicleType& TraCIServerAPI_VehicleType::operator= ( const TraCIServerAPI_VehicleType s)
private

invalidated assignment operator

◆ processGet()

bool TraCIServerAPI_VehicleType::processGet ( TraCIServer server,
tcpip::Storage inputStorage,
tcpip::Storage outputStorage 
)
static

Processes a get value command (Command 0xa5: Get Vehicle Type Variable)

Parameters
[in]serverThe TraCI-server-instance which schedules this request
[in]inputStorageThe storage to read the command from
[out]outputStorageThe storage to write the result to

Definition at line 40 of file TraCIServerAPI_VehicleType.cpp.

References libsumo::CMD_GET_VEHICLETYPE_VARIABLE, TraCIServer::getWrapperStorage(), TraCIServer::initWrapper(), tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), libsumo::RESPONSE_GET_VEHICLETYPE_VARIABLE, libsumo::RTYPE_OK, toHex(), TraCIServer::writeErrorStatusCmd(), TraCIServer::writeResponseWithLength(), and TraCIServer::writeStatusCmd().

Referenced by TraCIServer::TraCIServer().

Here is the caller graph for this function:

◆ processSet()

bool TraCIServerAPI_VehicleType::processSet ( TraCIServer server,
tcpip::Storage inputStorage,
tcpip::Storage outputStorage 
)
static

◆ setVariable()


The documentation for this class was generated from the following files: