Eclipse SUMO - Simulation of Urban MObility
TraCIServerAPI_POI Class Reference

APIs for getting/setting POI values via TraCI. More...

#include <TraCIServerAPI_POI.h>

Static Public Member Functions

static bool processGet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a get value command (Command 0xa7: Get PoI Variable) More...
 
static bool processSet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a set value command (Command 0xc7: Change PoI State) More...
 

Private Member Functions

TraCIServerAPI_POIoperator= (const TraCIServerAPI_POI &s)
 invalidated assignment operator More...
 
 TraCIServerAPI_POI (const TraCIServerAPI_POI &s)
 invalidated copy constructor More...
 

Detailed Description

APIs for getting/setting POI values via TraCI.

Definition at line 35 of file TraCIServerAPI_POI.h.

Constructor & Destructor Documentation

◆ TraCIServerAPI_POI()

TraCIServerAPI_POI::TraCIServerAPI_POI ( const TraCIServerAPI_POI s)
private

invalidated copy constructor

Member Function Documentation

◆ operator=()

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

invalidated assignment operator

◆ processGet()

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

Processes a get value command (Command 0xa7: Get PoI 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

length

Definition at line 38 of file TraCIServerAPI_POI.cpp.

References libsumo::CMD_GET_POI_VARIABLE, TraCIServer::getWrapperStorage(), libsumo::POI::handleVariable(), TraCIServer::initWrapper(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), libsumo::RESPONSE_GET_POI_VARIABLE, libsumo::RTYPE_OK, toHex(), libsumo::TYPE_COMPOUND, libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, libsumo::VAR_PARAMETER_WITH_KEY, TraCIServer::writeErrorStatusCmd(), tcpip::Storage::writeInt(), TraCIServer::writeResponseWithLength(), TraCIServer::writeStatusCmd(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCIServer::TraCIServer().

Here is the caller graph for this function:

◆ processSet()

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

Processes a set value command (Command 0xc7: Change PoI State)

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 82 of file TraCIServerAPI_POI.cpp.

References libsumo::POI::add(), libsumo::ADD, libsumo::CMD_SET_POI_VARIABLE, libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::POI::highlight(), tcpip::Storage::readInt(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingColor(), TraCIServer::readTypeCheckingDouble(), TraCIServer::readTypeCheckingInt(), TraCIServer::readTypeCheckingPosition2D(), TraCIServer::readTypeCheckingString(), TraCIServer::readTypeCheckingUnsignedByte(), tcpip::Storage::readUnsignedByte(), libsumo::POI::remove(), libsumo::REMOVE, libsumo::RTYPE_OK, libsumo::POI::setAngle(), libsumo::POI::setColor(), libsumo::POI::setHeight(), libsumo::POI::setImageFile(), libsumo::POI::setPosition(), libsumo::POI::setType(), libsumo::POI::setWidth(), toHex(), libsumo::TYPE_COMPOUND, libsumo::VAR_ANGLE, libsumo::VAR_COLOR, libsumo::VAR_HEIGHT, libsumo::VAR_HIGHLIGHT, libsumo::VAR_IMAGEFILE, libsumo::VAR_PARAMETER, libsumo::VAR_POSITION, libsumo::VAR_TYPE, libsumo::VAR_WIDTH, TraCIServer::writeErrorStatusCmd(), TraCIServer::writeStatusCmd(), libsumo::TraCIPosition::x, and libsumo::TraCIPosition::y.

Referenced by TraCIServer::TraCIServer().

Here is the caller graph for this function:

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