![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <StorageHelper.h>
Static Public Member Functions | |
static void | readBestLanesVector (tcpip::Storage &inputStorage, std::vector< libsumo::TraCIBestLanesData > &result, const std::string &error="") |
static bool | readBool (tcpip::Storage &ret, const std::string &error="") |
static void | readCollisionVector (tcpip::Storage &inputStorage, std::vector< libsumo::TraCICollision > &result, const std::string &error="") |
static int | readCompound (tcpip::Storage &ret, int expectedSize=-1, const std::string &error="") |
static void | readConnection (tcpip::Storage &inputStorage, libsumo::TraCIConnection &connection, const std::string &error="") |
static void | readConstraintVector (tcpip::Storage &inputStorage, std::vector< libsumo::TraCISignalConstraint > &result, const std::string &error="") |
static void | readJunctionFoeVector (tcpip::Storage &inputStorage, std::vector< libsumo::TraCIJunctionFoe > &result, const std::string &error="") |
static void | readLinkVectorVector (tcpip::Storage &inputStorage, std::vector< std::vector< libsumo::TraCILink > > &result, const std::string &error="") |
static void | readLogic (tcpip::Storage &inputStorage, libsumo::TraCILogic &logic, const std::string &error="") |
static void | readPolygon (tcpip::Storage &ret, libsumo::TraCIPositionVector &poly) |
static void | readReservation (tcpip::Storage &inputStorage, libsumo::TraCIReservation &result, const std::string &error="") |
static void | readStage (tcpip::Storage &inputStorage, libsumo::TraCIStage &stage, const std::string &error="") |
static void | readStopVector (tcpip::Storage &inputStorage, std::vector< libsumo::TraCINextStopData > &result, const std::string &error="") |
static void | readTLSDataVector (tcpip::Storage &inputStorage, std::vector< libsumo::TraCINextTLSData > &result, const std::string &error="") |
static int | readTypedByte (tcpip::Storage &ret, const std::string &error="") |
static double | readTypedDouble (tcpip::Storage &ret, const std::string &error="") |
static int | readTypedInt (tcpip::Storage &ret, const std::string &error="") |
static std::string | readTypedString (tcpip::Storage &ret, const std::string &error="") |
static std::vector< std::string > | readTypedStringList (tcpip::Storage &ret, const std::string &error="") |
static int | readTypedUnsignedByte (tcpip::Storage &ret, const std::string &error="") |
static void | readVehicleDataVector (tcpip::Storage &inputStorage, std::vector< libsumo::TraCIVehicleData > &result, const std::string &error="") |
static std::shared_ptr< tcpip::Storage > | toStorage (const TraCIResult &v) |
static void | writeCompound (tcpip::Storage &content, int size) |
static void | writeConstraint (tcpip::Storage &content, const libsumo::TraCISignalConstraint &c) |
static void | writePolygon (tcpip::Storage &content, const libsumo::TraCIPositionVector &shape) |
static void | writeStage (tcpip::Storage &content, const libsumo::TraCIStage &stage) |
static void | writeTypedByte (tcpip::Storage &content, int value) |
static void | writeTypedDouble (tcpip::Storage &content, double value) |
static void | writeTypedInt (tcpip::Storage &content, int value) |
static void | writeTypedString (tcpip::Storage &content, const std::string &value) |
static void | writeTypedStringList (tcpip::Storage &content, const std::vector< std::string > &value) |
static void | writeTypedUnsignedByte (tcpip::Storage &content, int value) |
Definition at line 32 of file StorageHelper.h.
|
inlinestatic |
Definition at line 301 of file StorageHelper.h.
References libsumo::TraCIBestLanesData::allowsContinuation, libsumo::TraCIBestLanesData::bestLaneOffset, libsumo::TraCIBestLanesData::continuationLanes, libsumo::TraCIBestLanesData::laneID, libsumo::TraCIBestLanesData::length, libsumo::TraCIBestLanesData::occupation, readBool(), readTypedDouble(), readTypedInt(), readTypedString(), readTypedStringList(), and readTypedUnsignedByte().
Referenced by libtraci::Connection::readVariables().
|
inlinestatic |
Definition at line 179 of file StorageHelper.h.
References tcpip::Storage::readUnsignedByte(), and libsumo::TYPE_UBYTE.
Referenced by readBestLanesVector(), readConnection(), and readJunctionFoeVector().
|
inlinestatic |
Definition at line 315 of file StorageHelper.h.
References libsumo::TraCICollision::collider, libsumo::TraCICollision::colliderSpeed, libsumo::TraCICollision::colliderType, libsumo::TraCICollision::lane, libsumo::TraCICollision::pos, readTypedDouble(), readTypedInt(), readTypedString(), libsumo::TraCICollision::type, libsumo::TraCICollision::victim, libsumo::TraCICollision::victimSpeed, and libsumo::TraCICollision::victimType.
Referenced by libtraci::Connection::readVariables().
|
inlinestatic |
Definition at line 154 of file StorageHelper.h.
References tcpip::Storage::readInt(), tcpip::Storage::readUnsignedByte(), and libsumo::TYPE_COMPOUND.
Referenced by LIBSUMO_NAMESPACE::Vehicle::handleVariable(), TraCIServerAPI_BusStop::processSet(), TraCIServerAPI_Calibrator::processSet(), TraCIServerAPI_ChargingStation::processSet(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_InductionLoop::processSet(), TraCIServerAPI_Junction::processSet(), TraCIServerAPI_Lane::processSet(), TraCIServerAPI_LaneArea::processSet(), TraCIServerAPI_MultiEntryExit::processSet(), TraCIServerAPI_Simulation::processSet(), libsumo::Helper::readDistanceRequest(), readLogic(), and readReservation().
|
inlinestatic |
Definition at line 202 of file StorageHelper.h.
References libsumo::TraCIConnection::approachedInternal, libsumo::TraCIConnection::approachedLane, libsumo::TraCIConnection::direction, libsumo::TraCIConnection::hasFoe, libsumo::TraCIConnection::hasPrio, libsumo::TraCIConnection::isOpen, libsumo::TraCIConnection::length, readBool(), readTypedDouble(), readTypedString(), and libsumo::TraCIConnection::state.
Referenced by libtraci::Connection::readVariables().
|
inlinestatic |
Definition at line 267 of file StorageHelper.h.
References libsumo::TraCISignalConstraint::active, libsumo::TraCISignalConstraint::foeId, libsumo::TraCISignalConstraint::foeSignal, libsumo::TraCISignalConstraint::limit, libsumo::TraCISignalConstraint::mustWait, libsumo::TraCISignalConstraint::param, readTypedByte(), readTypedInt(), readTypedString(), readTypedStringList(), libsumo::TraCISignalConstraint::signalId, libsumo::TraCISignalConstraint::tripId, and libsumo::TraCISignalConstraint::type.
Referenced by libtraci::Connection::readVariables().
|
inlinestatic |
Definition at line 332 of file StorageHelper.h.
References libsumo::TraCIJunctionFoe::egoDist, libsumo::TraCIJunctionFoe::egoExitDist, libsumo::TraCIJunctionFoe::egoLane, libsumo::TraCIJunctionFoe::egoResponse, libsumo::TraCIJunctionFoe::foeDist, libsumo::TraCIJunctionFoe::foeExitDist, libsumo::TraCIJunctionFoe::foeId, libsumo::TraCIJunctionFoe::foeLane, libsumo::TraCIJunctionFoe::foeResponse, readBool(), readTypedDouble(), readTypedInt(), and readTypedString().
Referenced by libtraci::Connection::readVariables().
|
inlinestatic |
Definition at line 287 of file StorageHelper.h.
References readTypedInt(), and readTypedStringList().
Referenced by libtraci::Connection::readVariables().
|
inlinestatic |
Definition at line 240 of file StorageHelper.h.
References libsumo::TraCILogic::currentPhaseIndex, libsumo::TraCIPhase::duration, libsumo::TraCIPhase::maxDur, libsumo::TraCIPhase::minDur, libsumo::TraCIPhase::name, libsumo::TraCIPhase::next, libsumo::TraCILogic::phases, libsumo::TraCILogic::programID, readCompound(), readTypedDouble(), readTypedInt(), readTypedString(), readTypedStringList(), libsumo::TraCIPhase::state, libsumo::TraCILogic::subParameter, and libsumo::TraCILogic::type.
Referenced by libtraci::Connection::readVariables().
|
inlinestatic |
Definition at line 165 of file StorageHelper.h.
References tcpip::Storage::readDouble(), tcpip::Storage::readInt(), tcpip::Storage::readUnsignedByte(), libsumo::TraCIPositionVector::value, libsumo::TraCIPosition::x, libsumo::TraCIPosition::y, and libsumo::TraCIPosition::z.
Referenced by libtraci::Domain< GET, SET >::getPolygon(), and libtraci::Connection::readVariables().
|
inlinestatic |
Definition at line 226 of file StorageHelper.h.
References libsumo::TraCIReservation::arrivalPos, libsumo::TraCIReservation::depart, libsumo::TraCIReservation::departPos, libsumo::TraCIReservation::fromEdge, libsumo::TraCIReservation::group, libsumo::TraCIReservation::id, libsumo::TraCIReservation::persons, readCompound(), readTypedDouble(), readTypedInt(), readTypedString(), readTypedStringList(), libsumo::TraCIReservation::reservationTime, libsumo::TraCIReservation::state, and libsumo::TraCIReservation::toEdge.
Referenced by libtraci::Connection::readVariables().
|
inlinestatic |
Definition at line 186 of file StorageHelper.h.
References libsumo::TraCIStage::arrivalPos, libsumo::TraCIStage::cost, libsumo::TraCIStage::depart, libsumo::TraCIStage::departPos, libsumo::TraCIStage::description, libsumo::TraCIStage::destStop, libsumo::TraCIStage::edges, libsumo::TraCIStage::intended, libsumo::TraCIStage::length, libsumo::TraCIStage::line, readTypedDouble(), readTypedInt(), readTypedString(), readTypedStringList(), libsumo::TraCIStage::travelTime, libsumo::TraCIStage::type, and libsumo::TraCIStage::vType.
Referenced by TraCIServerAPI_Person::processSet(), and libtraci::Connection::readVariables().
|
inlinestatic |
Definition at line 349 of file StorageHelper.h.
References libsumo::TraCINextStopData::actType, libsumo::TraCINextStopData::arrival, libsumo::TraCINextStopData::depart, libsumo::TraCINextStopData::duration, libsumo::TraCINextStopData::endPos, libsumo::TraCINextStopData::intendedArrival, libsumo::TraCINextStopData::join, libsumo::TraCINextStopData::lane, libsumo::TraCINextStopData::line, readTypedDouble(), readTypedInt(), readTypedString(), libsumo::TraCINextStopData::speed, libsumo::TraCINextStopData::split, libsumo::TraCINextStopData::startPos, libsumo::TraCINextStopData::stopFlags, libsumo::TraCINextStopData::stoppingPlaceID, libsumo::TraCINextStopData::tripId, and libsumo::TraCINextStopData::until.
Referenced by libtraci::Connection::readVariables().
|
inlinestatic |
Definition at line 373 of file StorageHelper.h.
References libsumo::TraCINextTLSData::dist, libsumo::TraCINextTLSData::id, readTypedByte(), readTypedDouble(), readTypedInt(), readTypedString(), libsumo::TraCINextTLSData::state, and libsumo::TraCINextTLSData::tlIndex.
Referenced by libtraci::Connection::readVariables().
|
inlinestatic |
Definition at line 119 of file StorageHelper.h.
References tcpip::Storage::readByte(), tcpip::Storage::readUnsignedByte(), and libsumo::TYPE_BYTE.
Referenced by LIBSUMO_NAMESPACE::Lane::handleVariable(), LIBSUMO_NAMESPACE::Vehicle::handleVariable(), TraCIServerAPI_Lane::processSet(), readConstraintVector(), and readTLSDataVector().
|
inlinestatic |
Definition at line 133 of file StorageHelper.h.
References tcpip::Storage::readDouble(), tcpip::Storage::readUnsignedByte(), and libsumo::TYPE_DOUBLE.
Referenced by libtraci::Domain< GET, SET >::getTraCIStage(), LIBSUMO_NAMESPACE::Edge::handleVariable(), LIBSUMO_NAMESPACE::Lane::handleVariable(), LIBSUMO_NAMESPACE::Vehicle::handleVariable(), TraCIServerAPI_Calibrator::processSet(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_Lane::processSet(), readBestLanesVector(), readCollisionVector(), readConnection(), readJunctionFoeVector(), readLogic(), readReservation(), readStage(), readStopVector(), readTLSDataVector(), and readVehicleDataVector().
|
inlinestatic |
Definition at line 112 of file StorageHelper.h.
References tcpip::Storage::readInt(), tcpip::Storage::readUnsignedByte(), and libsumo::TYPE_INTEGER.
Referenced by libtraci::Domain< GET, SET >::getTraCIStage(), LIBSUMO_NAMESPACE::Person::handleVariable(), LIBSUMO_NAMESPACE::TrafficLight::handleVariable(), LIBSUMO_NAMESPACE::Vehicle::handleVariable(), TraCIServerAPI_Vehicle::insertReplaceStop(), TraCIServerAPI_Simulation::processGet(), TraCIServerAPI_GUI::processSet(), TraCIServerAPI_ChargingStation::processSet(), TraCIServerAPI_LaneArea::processSet(), TraCIServerAPI_Person::processSet(), TraCIServerAPI_POI::processSet(), TraCIServerAPI_Polygon::processSet(), TraCIServerAPI_TrafficLight::processSet(), TraCIServerAPI_Vehicle::processSet(), readBestLanesVector(), readCollisionVector(), readConstraintVector(), readJunctionFoeVector(), readLinkVectorVector(), readLogic(), readReservation(), readStage(), readStopVector(), readTLSDataVector(), libtraci::Connection::readVariables(), and readVehicleDataVector().
|
inlinestatic |
Definition at line 140 of file StorageHelper.h.
References tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), and libsumo::TYPE_STRING.
Referenced by libtraci::Domain< GET, SET >::getTraCIStage(), LIBSUMO_NAMESPACE::Edge::handleVariable(), LIBSUMO_NAMESPACE::Lane::handleVariable(), LIBSUMO_NAMESPACE::Person::handleVariable(), LIBSUMO_NAMESPACE::Simulation::handleVariable(), LIBSUMO_NAMESPACE::TrafficLight::handleVariable(), LIBSUMO_NAMESPACE::Vehicle::handleVariable(), TraCIServerAPI_BusStop::processSet(), TraCIServerAPI_Calibrator::processSet(), TraCIServerAPI_ChargingStation::processSet(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_InductionLoop::processSet(), TraCIServerAPI_Junction::processSet(), TraCIServerAPI_Lane::processSet(), TraCIServerAPI_LaneArea::processSet(), TraCIServerAPI_MultiEntryExit::processSet(), TraCIServerAPI_Simulation::processSet(), readBestLanesVector(), readCollisionVector(), readConnection(), readConstraintVector(), readJunctionFoeVector(), readLogic(), readReservation(), readStage(), readStopVector(), readTLSDataVector(), and readVehicleDataVector().
|
inlinestatic |
Definition at line 147 of file StorageHelper.h.
References tcpip::Storage::readStringList(), tcpip::Storage::readUnsignedByte(), and libsumo::TYPE_STRINGLIST.
Referenced by libtraci::Domain< GET, SET >::getTraCIStage(), LIBSUMO_NAMESPACE::Person::handleVariable(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_Lane::processSet(), readBestLanesVector(), readConstraintVector(), readLinkVectorVector(), readLogic(), readReservation(), and readStage().
|
inlinestatic |
Definition at line 126 of file StorageHelper.h.
References tcpip::Storage::readUnsignedByte(), and libsumo::TYPE_UBYTE.
Referenced by readBestLanesVector().
|
inlinestatic |
Definition at line 213 of file StorageHelper.h.
References libsumo::TraCIVehicleData::entryTime, libsumo::TraCIVehicleData::id, libsumo::TraCIVehicleData::leaveTime, libsumo::TraCIVehicleData::length, readTypedDouble(), readTypedInt(), readTypedString(), and libsumo::TraCIVehicleData::typeID.
Referenced by libtraci::Connection::readVariables().
|
inlinestatic |
Definition at line 34 of file StorageHelper.h.
References libsumo::TraCIResult::getString(), libsumo::TraCIResult::getType(), libsumo::TraCIDouble::getType(), libsumo::POSITION_2D, libsumo::POSITION_3D, libsumo::POSITION_ROADMAP, libsumo::REQUEST_DRIVINGDIST, toHex(), libsumo::TYPE_BYTE, libsumo::TYPE_DOUBLE, libsumo::TYPE_INTEGER, libsumo::TYPE_STRING, libsumo::TYPE_UBYTE, writeCompound(), writeTypedByte(), writeTypedDouble(), writeTypedInt(), and writeTypedString().
Referenced by libsumo::Helper::subscribe(), and libtraci::Connection::subscribe().
|
inlinestatic |
Definition at line 416 of file StorageHelper.h.
References libsumo::TYPE_COMPOUND, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
Referenced by toStorage(), TraCIServer::wrapBestLanesDataVector(), TraCIServer::wrapConnectionVector(), TraCIServer::wrapIntPair(), TraCIServer::wrapJunctionFoeVector(), TraCIServer::wrapLinkVectorVector(), TraCIServer::wrapLogicVector(), TraCIServer::wrapNextStopDataVector(), TraCIServer::wrapNextTLSDataVector(), TraCIServer::wrapReservationVector(), TraCIServer::wrapSignalConstraintVector(), TraCIServer::wrapStringDoublePair(), TraCIServer::wrapStringDoublePairList(), TraCIServer::wrapStringPair(), TraCIServer::wrapVehicleDataVector(), and writeStage().
|
inlinestatic |
Definition at line 453 of file StorageHelper.h.
References libsumo::TraCISignalConstraint::active, libsumo::TraCISignalConstraint::foeId, libsumo::TraCISignalConstraint::foeSignal, libsumo::TraCISignalConstraint::limit, libsumo::TraCISignalConstraint::mustWait, libsumo::TraCISignalConstraint::param, libsumo::TraCISignalConstraint::signalId, libsumo::TraCISignalConstraint::tripId, libsumo::TraCISignalConstraint::type, writeTypedByte(), writeTypedInt(), writeTypedString(), and writeTypedStringList().
Referenced by TraCIServer::wrapSignalConstraintVector().
|
inlinestatic |
Definition at line 421 of file StorageHelper.h.
References libsumo::TYPE_POLYGON, libsumo::TraCIPositionVector::value, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
|
inlinestatic |
Definition at line 435 of file StorageHelper.h.
References libsumo::TraCIStage::arrivalPos, libsumo::TraCIStage::cost, libsumo::TraCIStage::depart, libsumo::TraCIStage::departPos, libsumo::TraCIStage::description, libsumo::TraCIStage::destStop, libsumo::TraCIStage::edges, libsumo::TraCIStage::intended, libsumo::TraCIStage::length, libsumo::TraCIStage::line, libsumo::TraCIStage::travelTime, libsumo::TraCIStage::type, libsumo::TYPE_INTEGER, libsumo::TraCIStage::vType, writeCompound(), tcpip::Storage::writeInt(), writeTypedDouble(), writeTypedString(), writeTypedStringList(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIServerAPI_Simulation::processGet(), and TraCIServer::wrapStage().
|
inlinestatic |
Definition at line 386 of file StorageHelper.h.
References libsumo::TYPE_BYTE, tcpip::Storage::writeByte(), and tcpip::Storage::writeUnsignedByte().
Referenced by toStorage(), TraCIServer::wrapBestLanesDataVector(), TraCIServer::wrapNextTLSDataVector(), writeConstraint(), and TraCIServerAPI_TrafficLight::writeConstraint().
|
inlinestatic |
Definition at line 401 of file StorageHelper.h.
References libsumo::TYPE_DOUBLE, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
Referenced by toStorage(), TraCIServer::wrapBestLanesDataVector(), TraCIServer::wrapConnectionVector(), TraCIServer::wrapJunctionFoeVector(), TraCIServer::wrapLogicVector(), TraCIServer::wrapNextStopDataVector(), TraCIServer::wrapNextTLSDataVector(), TraCIServer::wrapReservationVector(), TraCIServer::wrapStringDoublePair(), TraCIServer::wrapVehicleDataVector(), and writeStage().
|
inlinestatic |
Definition at line 396 of file StorageHelper.h.
References libsumo::TYPE_INTEGER, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIServerAPI_GUI::processGet(), toStorage(), TraCIServer::wrapBestLanesDataVector(), TraCIServer::wrapConnectionVector(), TraCIServer::wrapIntPair(), TraCIServer::wrapJunctionFoeVector(), TraCIServer::wrapLinkVectorVector(), TraCIServer::wrapLogicVector(), TraCIServer::wrapNextStopDataVector(), TraCIServer::wrapNextTLSDataVector(), TraCIServer::wrapReservationVector(), TraCIServer::wrapSignalConstraintVector(), TraCIServer::wrapVehicleDataVector(), writeConstraint(), and TraCIServerAPI_TrafficLight::writeConstraint().
|
inlinestatic |
Definition at line 406 of file StorageHelper.h.
References libsumo::TYPE_STRING, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by toStorage(), TraCIServer::wrapBestLanesDataVector(), TraCIServer::wrapConnectionVector(), TraCIServer::wrapJunctionFoeVector(), TraCIServer::wrapLogicVector(), TraCIServer::wrapNextStopDataVector(), TraCIServer::wrapNextTLSDataVector(), TraCIServer::wrapReservationVector(), TraCIServer::wrapStringDoublePair(), TraCIServer::wrapStringPair(), TraCIServer::wrapVehicleDataVector(), writeConstraint(), TraCIServerAPI_TrafficLight::writeConstraint(), and writeStage().
|
inlinestatic |
Definition at line 411 of file StorageHelper.h.
References libsumo::TYPE_STRINGLIST, tcpip::Storage::writeStringList(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIServer::wrapBestLanesDataVector(), TraCIServer::wrapLinkVectorVector(), TraCIServer::wrapLogicVector(), TraCIServer::wrapReservationVector(), writeConstraint(), TraCIServerAPI_TrafficLight::writeConstraint(), and writeStage().
|
inlinestatic |
Definition at line 391 of file StorageHelper.h.
References libsumo::TYPE_UBYTE, and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIServer::wrapBestLanesDataVector(), TraCIServer::wrapConnectionVector(), and TraCIServer::wrapJunctionFoeVector().