Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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).
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.

Private Member Functions

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

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

References TraCIServerAPI_VehicleType().

Referenced by operator=(), and TraCIServerAPI_VehicleType().

Here is the caller graph for this function:

Member Function Documentation

◆ operator=()

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

invalidated assignment operator

References TraCIServerAPI_VehicleType().

◆ 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()

bool TraCIServerAPI_VehicleType::setVariable ( const int cmd,
const int variable,
const std::string & id,
TraCIServer & server,
tcpip::Storage & inputStorage,
tcpip::Storage & outputStorage )
static

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