Eclipse SUMO - Simulation of Urban MObility
tcpip::Storage Class Reference

#include <storage.h>

Collaboration diagram for tcpip::Storage:

Public Types

typedef std::vector< unsigned char > StorageType
 

Public Member Functions

StorageType::const_iterator begin () const
 
StorageType::const_iterator end () const
 
std::string hexDump () const
 Dump storage content as series of hex values. More...
 
virtual unsigned int position () const
 
virtual int readByte ()
 
virtual unsigned char readChar ()
 
virtual double readDouble ()
 
virtual std::vector< double > readDoubleList ()
 
virtual float readFloat ()
 
virtual int readInt ()
 
virtual int readShort ()
 
virtual std::string readString ()
 
virtual std::vector< std::string > readStringList ()
 
virtual int readUnsignedByte ()
 
void reset ()
 
StorageType::size_type size () const
 
 Storage ()
 Standard Constructor. More...
 
 Storage (const unsigned char[], int length=-1)
 Constructor, that fills the storage with an char array. If length is -1, the whole array is handed over. More...
 
virtual bool valid_pos ()
 
virtual void writeByte (int)
 
virtual void writeChar (unsigned char)
 
virtual void writeDouble (double)
 
virtual void writeDoubleList (const std::vector< double > &s)
 
virtual void writeFloat (float)
 
virtual void writeInt (int)
 
virtual void writePacket (const std::vector< unsigned char > &packet)
 
virtual void writePacket (unsigned char *packet, int length)
 
virtual void writeShort (int)
 
virtual void writeStorage (tcpip::Storage &store)
 
virtual void writeString (const std::string &s)
 
virtual void writeStringList (const std::vector< std::string > &s)
 
virtual void writeUnsignedByte (int)
 
virtual ~Storage ()
 

Private Member Functions

void checkReadSafe (unsigned int num) const
 Check if the next num bytes can be read safely. More...
 
void init ()
 Used in constructors to initialize local variables. More...
 
void readByEndianess (unsigned char *array, int size)
 Read size elements into array according to endianess. More...
 
unsigned char readCharUnsafe ()
 Read a byte without validity check. More...
 
void writeByEndianess (const unsigned char *begin, unsigned int size)
 Write size elements of array begin according to endianess. More...
 

Private Attributes

bool bigEndian_
 
StorageType::const_iterator iter_
 
StorageType store
 

Detailed Description

Definition at line 37 of file storage.h.

Member Typedef Documentation

◆ StorageType

typedef std::vector<unsigned char> tcpip::Storage::StorageType

Definition at line 41 of file storage.h.

Constructor & Destructor Documentation

◆ Storage() [1/2]

tcpip::Storage::Storage ( )

Standard Constructor.

Definition at line 32 of file storage.cpp.

References init().

◆ Storage() [2/2]

tcpip::Storage::Storage ( const unsigned char  packet[],
int  length = -1 
)

Constructor, that fills the storage with an char array. If length is -1, the whole array is handed over.

Definition at line 39 of file storage.cpp.

References init(), and store.

◆ ~Storage()

tcpip::Storage::~Storage ( )
virtual

Definition at line 64 of file storage.cpp.

Member Function Documentation

◆ begin()

StorageType::const_iterator tcpip::Storage::begin ( ) const
inline

Definition at line 120 of file storage.h.

References store.

Referenced by TraCIServer::readCommandID(), tcpip::Socket::sendExact(), and writeByEndianess().

◆ checkReadSafe()

void tcpip::Storage::checkReadSafe ( unsigned int  num) const
private

Check if the next num bytes can be read safely.

Definition at line 392 of file storage.cpp.

References iter_, and store.

Referenced by readByEndianess(), and readString().

◆ end()

StorageType::const_iterator tcpip::Storage::end ( ) const
inline

Definition at line 121 of file storage.h.

References store.

Referenced by TraCIServer::readCommandID(), readString(), tcpip::Socket::sendExact(), and writeByEndianess().

◆ hexDump()

std::string tcpip::Storage::hexDump ( ) const

Dump storage content as series of hex values.

Definition at line 443 of file storage.cpp.

References store.

◆ init()

void tcpip::Storage::init ( )
private

Used in constructors to initialize local variables.

Definition at line 52 of file storage.cpp.

References bigEndian_, iter_, and store.

Referenced by Storage().

◆ position()

unsigned int tcpip::Storage::position ( ) const
virtual

◆ readByEndianess()

void tcpip::Storage::readByEndianess ( unsigned char *  array,
int  size 
)
private

Read size elements into array according to endianess.

Definition at line 426 of file storage.cpp.

References bigEndian_, checkReadSafe(), readCharUnsafe(), and size().

Referenced by readDouble(), readFloat(), readInt(), and readShort().

◆ readByte()

int tcpip::Storage::readByte ( )
virtual

Reads a byte form the array

Returns
The read byte (between -128 and 127)

Definition at line 123 of file storage.cpp.

References readChar().

Referenced by TraCIServer::addSubscriptionFilter(), TraCIAPI::getByte(), TraCIServer::initialiseSubscription(), TraCITestClient::readAndReportTypeDependent(), and TraCIServer::readTypeCheckingByte().

◆ readChar()

unsigned char tcpip::Storage::readChar ( )
virtual

Reads a char form the array

Returns
The read char (between 0 and 255)

Definition at line 97 of file storage.cpp.

References readCharUnsafe(), and valid_pos().

Referenced by TraCIServer::addObjectVariableSubscription(), TraCIServer::dispatchCommand(), readByte(), and readUnsignedByte().

◆ readCharUnsafe()

unsigned char tcpip::Storage::readCharUnsafe ( )
private

Read a byte without validity check.

Definition at line 405 of file storage.cpp.

References iter_.

Referenced by readByEndianess(), and readChar().

◆ readDouble()

◆ readDoubleList()

std::vector< double > tcpip::Storage::readDoubleList ( )
virtual

Reads a double list from the array

Returns
The read double list

Definition at line 224 of file storage.cpp.

References readDouble(), and readInt().

Referenced by TraCIServer::readTypeCheckingDoubleList().

◆ readFloat()

float tcpip::Storage::readFloat ( )
virtual

restores a float , which was split up in four bytes acording to the specification, it must have been split by its row byte representation with MSBF-order

Returns
the unspoiled float value

Definition at line 331 of file storage.cpp.

References readByEndianess().

◆ readInt()

◆ readShort()

int tcpip::Storage::readShort ( )
virtual

Restores an integer, which was split up in two bytes according to the specification, it must have been split by its row byte representation with MSBF-order

Returns
the unspoiled integer value (between -32768 and 32767)

Definition at line 275 of file storage.cpp.

References readByEndianess().

◆ readString()

std::string tcpip::Storage::readString ( )
virtual

Reads a string form the array

Returns
The read string

Definition at line 175 of file storage.cpp.

References checkReadSafe(), end(), iter_, and readInt().

Referenced by TraCIServer::addObjectVariableSubscription(), TraCIAPI::check_commandGetResult(), TraCIAPI::check_resultState(), TraCIServerAPI_Simulation::commandDistanceRequest(), TraCITestClient::commandGetVariable(), TraCIServerAPI_Simulation::commandPositionConversion(), TraCIAPI::getString(), TraCIAPI::getStringVector(), TraCIAPI::getTraCIStage(), TraCIServerAPI_GUI::processGet(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Junction::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_LaneArea::processGet(), TraCIServerAPI_MultiEntryExit::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_POI::processGet(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_Route::processGet(), TraCIServerAPI_Simulation::processGet(), TraCIServerAPI_TrafficLight::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_VehicleType::processGet(), TraCIServerAPI_GUI::processSet(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_Lane::processSet(), TraCIServerAPI_Person::processSet(), TraCIServerAPI_POI::processSet(), TraCIServerAPI_Polygon::processSet(), TraCIServerAPI_Route::processSet(), TraCIServerAPI_Simulation::processSet(), TraCIServerAPI_TrafficLight::processSet(), TraCIServerAPI_Vehicle::processSet(), TraCIServerAPI_VehicleType::processSet(), TraCIServer::processSingleSubscription(), TraCITestClient::readAndReportTypeDependent(), TraCIAPI::readContextSubscription(), readStringList(), TraCIServer::readTypeCheckingString(), TraCIAPI::readVariables(), TraCIAPI::readVariableSubscription(), and TraCITestClient::validateSubscription().

◆ readStringList()

std::vector< std::string > tcpip::Storage::readStringList ( )
virtual

Reads a string list form the array

Returns
The read string

Definition at line 206 of file storage.cpp.

References readInt(), and readString().

Referenced by TraCIServer::addSubscriptionFilter(), TraCIAPI::getTraCIStage(), TraCITestClient::readAndReportTypeDependent(), and TraCIServer::readTypeCheckingStringList().

◆ readUnsignedByte()

int tcpip::Storage::readUnsignedByte ( )
virtual

Reads an unsigned byte form the array

Returns
The read byte (between 0 and 255)

Definition at line 150 of file storage.cpp.

References readChar().

Referenced by TraCIServer::addObjectVariableSubscription(), TraCIServer::addSubscriptionFilter(), TraCIAPI::check_commandGetResult(), TraCIAPI::check_resultState(), TraCIServerAPI_Simulation::commandDistanceRequest(), TraCITestClient::commandGetVariable(), TraCIServerAPI_Simulation::commandPositionConversion(), TraCIAPI::getColor(), TraCIAPI::getPolygon(), TraCIAPI::getTraCIStage(), TraCIAPI::getUnsignedByte(), TraCIServerAPI_GUI::processGet(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Junction::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_LaneArea::processGet(), TraCIServerAPI_MultiEntryExit::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_POI::processGet(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_Route::processGet(), TraCIServerAPI_Simulation::processGet(), TraCIServerAPI_TrafficLight::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_VehicleType::processGet(), TraCIServerAPI_GUI::processSet(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_Lane::processSet(), TraCIServerAPI_Person::processSet(), TraCIServerAPI_POI::processSet(), TraCIServerAPI_Polygon::processSet(), TraCIServerAPI_Route::processSet(), TraCIServerAPI_Simulation::processSet(), TraCIServerAPI_TrafficLight::processSet(), TraCIServerAPI_Vehicle::processSet(), TraCIServerAPI_VehicleType::processSet(), TraCIServer::processSingleSubscription(), TraCITestClient::readAndReportTypeDependent(), TraCIServer::readCommandID(), TraCIAPI::readContextSubscription(), TraCIServer::readTypeCheckingColor(), TraCIServer::readTypeCheckingDouble(), TraCIServer::readTypeCheckingDoubleList(), TraCIServer::readTypeCheckingInt(), TraCIServer::readTypeCheckingPolygon(), TraCIServer::readTypeCheckingPosition2D(), TraCIServer::readTypeCheckingString(), TraCIServer::readTypeCheckingStringList(), TraCIServer::readTypeCheckingUnsignedByte(), TraCIAPI::readVariables(), TraCIAPI::readVariableSubscription(), TraCIServerAPI_VehicleType::setVariable(), and TraCITestClient::validateSubscription().

◆ reset()

◆ size()

◆ valid_pos()

bool tcpip::Storage::valid_pos ( )
virtual

◆ writeByEndianess()

void tcpip::Storage::writeByEndianess ( const unsigned char *  begin,
unsigned int  size 
)
private

Write size elements of array begin according to endianess.

Definition at line 414 of file storage.cpp.

References begin(), bigEndian_, end(), iter_, size(), and store.

Referenced by writeDouble(), writeFloat(), writeInt(), and writeShort().

◆ writeByte()

◆ writeChar()

void tcpip::Storage::writeChar ( unsigned char  value)
virtual

Definition at line 111 of file storage.cpp.

References iter_, and store.

Referenced by writeByte(), and writeUnsignedByte().

◆ writeDouble()

void tcpip::Storage::writeDouble ( double  value)
virtual

Definition at line 349 of file storage.cpp.

References writeByEndianess().

Referenced by TraCIAPI::EdgeScope::adaptTraveltime(), TraCIAPI::PersonScope::add(), TraCIAPI::POIScope::add(), TraCIAPI::PolygonScope::add(), TraCIAPI::VehicleScope::addSubscriptionFilterFloat(), TraCIAPI::PersonScope::appendStage(), TraCIAPI::PersonScope::appendWaitingStage(), TraCIAPI::PersonScope::appendWalkingStage(), TraCIAPI::VehicleScope::changeLane(), TraCIAPI::VehicleScope::changeLaneRelative(), TraCIAPI::VehicleScope::changeSublane(), TraCIServerAPI_Simulation::commandDistanceRequest(), TraCIServerAPI_Simulation::commandPositionConversion(), TraCIAPI::SimulationScope::convert2D(), TraCIAPI::SimulationScope::convert3D(), TraCIAPI::SimulationScope::convertGeo(), TraCIAPI::SimulationScope::convertRoad(), TraCIAPI::SimulationScope::findRoute(), TraCIAPI::EdgeScope::getAdaptedTraveltime(), TraCIAPI::SimulationScope::getDistance2D(), TraCIAPI::SimulationScope::getDistanceRoad(), TraCIAPI::EdgeScope::getEffort(), TraCIAPI::VehicleScope::getLeader(), TraCIAPI::VehicleScope::moveTo(), TraCIAPI::VehicleScope::moveToXY(), TraCIAPI::VehicleScope::openGap(), TraCIServerAPI_GUI::processGet(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_Simulation::processGet(), TraCIServerAPI_TrafficLight::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIAPI::send_commandSimulationStep(), TraCIAPI::send_commandSubscribeObjectContext(), TraCIAPI::send_commandSubscribeObjectVariable(), TraCIAPI::VehicleTypeScope::setAccel(), TraCIAPI::POIScope::setAngle(), TraCIAPI::VehicleTypeScope::setApparentDecel(), TraCIAPI::GUIScope::setBoundary(), TraCIAPI::TrafficLightScope::setCompleteRedYellowGreenDefinition(), TraCIAPI::VehicleTypeScope::setDecel(), TraCIAPI::EdgeScope::setEffort(), TraCIAPI::VehicleTypeScope::setEmergencyDecel(), TraCIAPI::PersonScope::setHeight(), TraCIAPI::POIScope::setHeight(), TraCIAPI::VehicleTypeScope::setHeight(), TraCIAPI::VehicleTypeScope::setImperfection(), TraCIAPI::LaneScope::setLength(), TraCIAPI::PersonScope::setLength(), TraCIAPI::VehicleTypeScope::setLength(), TraCIAPI::PolygonScope::setLineWidth(), TraCIAPI::EdgeScope::setMaxSpeed(), TraCIAPI::LaneScope::setMaxSpeed(), TraCIAPI::VehicleTypeScope::setMaxSpeed(), TraCIAPI::VehicleScope::setMaxSpeed(), TraCIAPI::VehicleTypeScope::setMaxSpeedLat(), TraCIAPI::PersonScope::setMinGap(), TraCIAPI::VehicleTypeScope::setMinGap(), TraCIAPI::VehicleTypeScope::setMinGapLat(), TraCIAPI::GUIScope::setOffset(), TraCIAPI::TrafficLightScope::setPhaseDuration(), TraCIAPI::POIScope::setPosition(), TraCIAPI::PolygonScope::setShape(), TraCIAPI::PersonScope::setSpeed(), TraCIAPI::VehicleScope::setSpeed(), TraCIAPI::VehicleTypeScope::setSpeedDeviation(), TraCIAPI::VehicleTypeScope::setSpeedFactor(), TraCIAPI::VehicleScope::setSpeedFactor(), TraCIAPI::VehicleScope::setStop(), TraCIAPI::VehicleTypeScope::setTau(), TraCITestClient::setValueTypeDependant(), TraCIAPI::PersonScope::setWidth(), TraCIAPI::POIScope::setWidth(), TraCIAPI::VehicleTypeScope::setWidth(), TraCIAPI::GUIScope::setZoom(), TraCIAPI::VehicleScope::slowDown(), TraCIServer::wrapDouble(), TraCIServer::wrapPosition(), writeDoubleList(), TraCIServer::writePositionVector(), and TraCIServerAPI_Simulation::writeStage().

◆ writeDoubleList()

void tcpip::Storage::writeDoubleList ( const std::vector< double > &  s)
virtual

Writes a double list into the array;

Parameters
sThe double list to be written

Definition at line 257 of file storage.cpp.

References writeDouble(), and writeInt().

◆ writeFloat()

void tcpip::Storage::writeFloat ( float  value)
virtual

Definition at line 341 of file storage.cpp.

References writeByEndianess().

◆ writeInt()

void tcpip::Storage::writeInt ( int  value)
virtual

Definition at line 316 of file storage.cpp.

References writeByEndianess().

Referenced by TraCIAPI::EdgeScope::adaptTraveltime(), TraCIAPI::PersonScope::add(), TraCIAPI::POIScope::add(), TraCIAPI::PolygonScope::add(), TraCIAPI::VehicleScope::add(), TraCIAPI::PersonScope::appendDrivingStage(), TraCIAPI::PersonScope::appendStage(), TraCIAPI::PersonScope::appendWaitingStage(), TraCIAPI::PersonScope::appendWalkingStage(), TraCIAPI::VehicleScope::changeLane(), TraCIAPI::VehicleScope::changeLaneRelative(), TraCIServer::commandGetVersion(), TraCIAPI::SimulationScope::convert2D(), TraCIAPI::SimulationScope::convert3D(), TraCIAPI::SimulationScope::convertGeo(), TraCIAPI::SimulationScope::convertRoad(), TraCIAPI::createCommand(), TraCIAPI::createFilterCommand(), TraCIAPI::SimulationScope::findRoute(), TraCIAPI::SimulationScope::getDistance2D(), TraCIAPI::SimulationScope::getDistanceRoad(), TraCIAPI::PersonScope::getEdges(), TraCIAPI::VehicleScope::getLaneChangeState(), TraCIAPI::TrafficLightScope::getServedPersonCount(), TraCIAPI::PersonScope::getStage(), TraCIServer::initialiseSubscription(), TraCIAPI::load(), TraCIAPI::VehicleScope::moveTo(), TraCIAPI::VehicleScope::moveToXY(), TraCIAPI::VehicleScope::openGap(), TraCIServer::openSocket(), TraCIServer::postProcessSimulationStep(), TraCIServerAPI_GUI::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_Simulation::processGet(), TraCIServerAPI_TrafficLight::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServer::processSingleSubscription(), TraCIAPI::POIScope::remove(), TraCIAPI::PolygonScope::remove(), TraCIAPI::PersonScope::removeStage(), TraCIAPI::PersonScope::rerouteTraveltime(), TraCIAPI::VehicleScope::rerouteTraveltime(), TraCIAPI::GUIScope::screenshot(), TraCIAPI::send_commandSetOrder(), TraCIAPI::send_commandSubscribeObjectContext(), TraCIAPI::send_commandSubscribeObjectVariable(), tcpip::Socket::sendExact(), TraCIAPI::LaneScope::setAllowed(), TraCIAPI::TrafficLightScope::setCompleteRedYellowGreenDefinition(), TraCIAPI::LaneScope::setDisallowed(), TraCIAPI::EdgeScope::setEffort(), TraCIAPI::setOrder(), TraCIAPI::TraCIScopeWrapper::setParameter(), TraCIAPI::TrafficLightScope::setPhase(), TraCIAPI::VehicleScope::setRoute(), TraCIAPI::VehicleScope::setRoutingMode(), TraCIAPI::PolygonScope::setShape(), TraCIAPI::VehicleScope::setSignals(), TraCIAPI::VehicleScope::setSpeedMode(), TraCIAPI::VehicleScope::setStop(), TraCITestClient::setValueTypeDependant(), TraCIAPI::VehicleScope::setVia(), TraCIAPI::VehicleScope::slowDown(), TraCIServer::wrapInt(), writeDoubleList(), TraCIServer::writePositionVector(), TraCIServer::writeResponseWithLength(), TraCIServerAPI_Simulation::writeStage(), writeString(), writeStringList(), and TraCIServerAPI_Simulation::writeVehicleStateNumber().

◆ writePacket() [1/2]

void tcpip::Storage::writePacket ( const std::vector< unsigned char > &  packet)
virtual

Definition at line 375 of file storage.cpp.

References iter_, and store.

◆ writePacket() [2/2]

void tcpip::Storage::writePacket ( unsigned char *  packet,
int  length 
)
virtual

Definition at line 367 of file storage.cpp.

References iter_, and store.

Referenced by TraCIServer::processSingleSubscription(), and tcpip::Socket::receiveExact().

◆ writeShort()

void tcpip::Storage::writeShort ( int  value)
virtual

Definition at line 285 of file storage.cpp.

References writeByEndianess().

◆ writeStorage()

◆ writeString()

void tcpip::Storage::writeString ( const std::string &  s)
virtual

Writes a string into the array;

Parameters
sThe string to be written

Definition at line 192 of file storage.cpp.

References iter_, store, and writeInt().

Referenced by TraCIAPI::PersonScope::add(), TraCIAPI::POIScope::add(), TraCIAPI::PolygonScope::add(), TraCIAPI::VehicleScope::add(), TraCIAPI::PersonScope::appendDrivingStage(), TraCIAPI::PersonScope::appendStage(), TraCIAPI::PersonScope::appendWaitingStage(), TraCIAPI::PersonScope::appendWalkingStage(), TraCIAPI::VehicleScope::changeTarget(), TraCIServer::commandGetVersion(), TraCIServerAPI_Simulation::commandPositionConversion(), TraCIAPI::SimulationScope::convert2D(), TraCIAPI::SimulationScope::convert3D(), TraCIAPI::SimulationScope::convertRoad(), TraCIAPI::VehicleTypeScope::copy(), TraCIAPI::createCommand(), TraCIAPI::SimulationScope::findRoute(), TraCIAPI::SimulationScope::getDistanceRoad(), TraCIAPI::LaneScope::getFoes(), TraCIAPI::TraCIScopeWrapper::getParameter(), TraCIServer::initWrapper(), TraCIAPI::VehicleScope::moveTo(), TraCIAPI::VehicleScope::moveToXY(), TraCIServerAPI_GUI::processGet(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_POI::processGet(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_Route::processGet(), TraCIServerAPI_Simulation::processGet(), TraCIServerAPI_TrafficLight::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_VehicleType::processGet(), TraCIServer::processSingleSubscription(), TraCIAPI::GUIScope::screenshot(), TraCIAPI::send_commandSubscribeObjectContext(), TraCIAPI::send_commandSubscribeObjectVariable(), TraCIAPI::LaneScope::setAllowed(), TraCIAPI::TrafficLightScope::setCompleteRedYellowGreenDefinition(), TraCIAPI::LaneScope::setDisallowed(), TraCIAPI::VehicleTypeScope::setEmissionClass(), TraCIAPI::VehicleScope::setEmissionClass(), TraCIAPI::POIScope::setImageFile(), TraCIAPI::VehicleTypeScope::setLateralAlignment(), TraCIAPI::VehicleScope::setLine(), TraCIAPI::TraCIScopeWrapper::setParameter(), TraCIAPI::TrafficLightScope::setPhaseName(), TraCIAPI::TrafficLightScope::setProgram(), TraCIAPI::TrafficLightScope::setRedYellowGreenState(), TraCIAPI::VehicleScope::setRoute(), TraCIAPI::VehicleScope::setRouteID(), TraCIAPI::GUIScope::setSchema(), TraCIAPI::VehicleTypeScope::setShapeClass(), TraCIAPI::VehicleScope::setShapeClass(), TraCIAPI::VehicleScope::setStop(), TraCIAPI::PersonScope::setType(), TraCIAPI::POIScope::setType(), TraCIAPI::PolygonScope::setType(), TraCIAPI::VehicleScope::setType(), TraCITestClient::setValueTypeDependant(), TraCIAPI::VehicleTypeScope::setVehicleClass(), TraCIAPI::VehicleScope::setVia(), TraCIAPI::GUIScope::trackVehicle(), TraCIServer::wrapString(), TraCIAPI::SimulationScope::writeMessage(), TraCIServerAPI_Simulation::writeStage(), TraCIServer::writeStatusCmd(), and writeStringList().

◆ writeStringList()

◆ writeUnsignedByte()

void tcpip::Storage::writeUnsignedByte ( int  value)
virtual

Definition at line 160 of file storage.cpp.

References writeChar().

Referenced by TraCIAPI::PersonScope::add(), TraCIAPI::POIScope::add(), TraCIAPI::PolygonScope::add(), TraCIAPI::RouteScope::add(), TraCIAPI::VehicleScope::add(), TraCIAPI::VehicleScope::addSubscriptionFilterByteList(), TraCIAPI::VehicleScope::addSubscriptionFilterFloat(), TraCIAPI::VehicleScope::addSubscriptionFilterStringList(), TraCIAPI::PersonScope::appendDrivingStage(), TraCIAPI::PersonScope::appendStage(), TraCIAPI::PersonScope::appendWaitingStage(), TraCIAPI::PersonScope::appendWalkingStage(), TraCIAPI::VehicleScope::changeLane(), TraCIAPI::VehicleScope::changeLaneRelative(), TraCIAPI::VehicleScope::changeSublane(), TraCIAPI::VehicleScope::changeTarget(), TraCIServer::checkClientOrdering(), TraCIServerAPI_Simulation::commandDistanceRequest(), TraCIServer::commandGetVersion(), TraCIServerAPI_Simulation::commandPositionConversion(), TraCIAPI::VehicleTypeScope::copy(), TraCIAPI::createCommand(), TraCIAPI::createFilterCommand(), TraCIAPI::SimulationScope::findRoute(), TraCIAPI::LaneScope::getFoes(), TraCIServer::initWrapper(), TraCIAPI::load(), TraCIAPI::VehicleScope::moveTo(), TraCIAPI::VehicleScope::moveToXY(), TraCIAPI::VehicleScope::openGap(), TraCIServerAPI_GUI::processGet(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_POI::processGet(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_Route::processGet(), TraCIServerAPI_Simulation::processGet(), TraCIServerAPI_TrafficLight::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_VehicleType::processGet(), TraCIServer::processSingleSubscription(), TraCIAPI::POIScope::remove(), TraCIAPI::PolygonScope::remove(), TraCIAPI::VehicleScope::remove(), TraCIAPI::PersonScope::rerouteTraveltime(), TraCIAPI::VehicleScope::rerouteTraveltime(), TraCIAPI::send_commandClose(), TraCIAPI::send_commandSetOrder(), TraCIAPI::send_commandSimulationStep(), TraCIAPI::send_commandSubscribeObjectContext(), TraCIAPI::send_commandSubscribeObjectVariable(), TraCIAPI::VehicleTypeScope::setAccel(), TraCIAPI::LaneScope::setAllowed(), TraCIAPI::POIScope::setAngle(), TraCIAPI::VehicleTypeScope::setApparentDecel(), TraCIAPI::GUIScope::setBoundary(), TraCIAPI::PersonScope::setColor(), TraCIAPI::POIScope::setColor(), TraCIAPI::PolygonScope::setColor(), TraCIAPI::VehicleTypeScope::setColor(), TraCIAPI::VehicleScope::setColor(), TraCIAPI::TrafficLightScope::setCompleteRedYellowGreenDefinition(), TraCIAPI::VehicleTypeScope::setDecel(), TraCIAPI::LaneScope::setDisallowed(), TraCIAPI::VehicleTypeScope::setEmergencyDecel(), TraCIAPI::VehicleTypeScope::setEmissionClass(), TraCIAPI::VehicleScope::setEmissionClass(), TraCIAPI::PersonScope::setHeight(), TraCIAPI::POIScope::setHeight(), TraCIAPI::VehicleTypeScope::setHeight(), TraCIAPI::POIScope::setImageFile(), TraCIAPI::VehicleTypeScope::setImperfection(), TraCIAPI::VehicleTypeScope::setLateralAlignment(), TraCIAPI::LaneScope::setLength(), TraCIAPI::PersonScope::setLength(), TraCIAPI::VehicleTypeScope::setLength(), TraCIAPI::VehicleScope::setLine(), TraCIAPI::PolygonScope::setLineWidth(), TraCIAPI::LaneScope::setMaxSpeed(), TraCIAPI::VehicleTypeScope::setMaxSpeed(), TraCIAPI::VehicleScope::setMaxSpeed(), TraCIAPI::VehicleTypeScope::setMaxSpeedLat(), TraCIAPI::PersonScope::setMinGap(), TraCIAPI::VehicleTypeScope::setMinGap(), TraCIAPI::VehicleTypeScope::setMinGapLat(), TraCIAPI::GUIScope::setOffset(), TraCIAPI::setOrder(), TraCIAPI::TraCIScopeWrapper::setParameter(), TraCIAPI::TrafficLightScope::setPhase(), TraCIAPI::TrafficLightScope::setPhaseDuration(), TraCIAPI::TrafficLightScope::setPhaseName(), TraCIAPI::POIScope::setPosition(), TraCIAPI::TrafficLightScope::setProgram(), TraCIAPI::TrafficLightScope::setRedYellowGreenState(), TraCIAPI::VehicleScope::setRoute(), TraCIAPI::VehicleScope::setRouteID(), TraCIAPI::VehicleScope::setRoutingMode(), TraCIAPI::GUIScope::setSchema(), TraCIAPI::PolygonScope::setShape(), TraCIAPI::VehicleTypeScope::setShapeClass(), TraCIAPI::VehicleScope::setShapeClass(), TraCIAPI::VehicleScope::setSignals(), TraCIAPI::PersonScope::setSpeed(), TraCIAPI::VehicleScope::setSpeed(), TraCIAPI::VehicleTypeScope::setSpeedDeviation(), TraCIAPI::VehicleTypeScope::setSpeedFactor(), TraCIAPI::VehicleScope::setSpeedFactor(), TraCIAPI::VehicleScope::setStop(), TraCIAPI::VehicleTypeScope::setTau(), TraCIAPI::PersonScope::setType(), TraCIAPI::POIScope::setType(), TraCIAPI::PolygonScope::setType(), TraCIAPI::VehicleScope::setType(), TraCITestClient::setValueTypeDependant(), TraCIAPI::VehicleTypeScope::setVehicleClass(), TraCIAPI::VehicleScope::setVia(), TraCIAPI::PersonScope::setWidth(), TraCIAPI::POIScope::setWidth(), TraCIAPI::VehicleTypeScope::setWidth(), TraCIAPI::GUIScope::setZoom(), TraCIAPI::VehicleScope::slowDown(), TraCIAPI::GUIScope::trackVehicle(), TraCIServer::wrapColor(), TraCIServer::wrapDouble(), TraCIServer::wrapInt(), TraCIServer::wrapPosition(), TraCIServer::wrapString(), TraCIServer::wrapStringList(), TraCIAPI::SimulationScope::writeMessage(), TraCIServer::writePositionVector(), TraCIServer::writeResponseWithLength(), TraCIServerAPI_Simulation::writeStage(), TraCIServer::writeStatusCmd(), TraCIServerAPI_Simulation::writeVehicleStateIDs(), and TraCIServerAPI_Simulation::writeVehicleStateNumber().

Field Documentation

◆ bigEndian_

bool tcpip::Storage::bigEndian_
private

Definition at line 48 of file storage.h.

Referenced by init(), readByEndianess(), and writeByEndianess().

◆ iter_

StorageType::const_iterator tcpip::Storage::iter_
private

◆ store


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