Eclipse SUMO - Simulation of Urban MObility
|
#include <StorageHelper.h>
Static Public Member Functions | |
static bool | readBool (tcpip::Storage &ret, const std::string &error="") |
static int | readCompound (tcpip::Storage &ret, int expectedSize=-1, const std::string &error="") |
static void | readStage (tcpip::Storage &inputStorage, libsumo::TraCIStage &stage, 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 std::shared_ptr< tcpip::Storage > | toStorage (const TraCIResult &v) |
static void | writeCompound (tcpip::Storage &content, int size) |
static void | writePolygon (tcpip::Storage &content, const libsumo::TraCIPositionVector &shape) |
static void | writeStage (tcpip::Storage &outputStorage, 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) |
Definition at line 31 of file StorageHelper.h.
|
inlinestatic |
Definition at line 96 of file StorageHelper.h.
References tcpip::Storage::readUnsignedByte(), and libsumo::TYPE_UBYTE.
|
inlinestatic |
Definition at line 85 of file StorageHelper.h.
References tcpip::Storage::readInt(), tcpip::Storage::readUnsignedByte(), and libsumo::TYPE_COMPOUND.
Referenced by 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(), and TraCIServerAPI_Simulation::processSet().
|
inlinestatic |
Definition at line 103 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().
|
inlinestatic |
Definition at line 57 of file StorageHelper.h.
References tcpip::Storage::readByte(), tcpip::Storage::readUnsignedByte(), and libsumo::TYPE_BYTE.
Referenced by TraCIServerAPI_Lane::processSet().
|
inlinestatic |
Definition at line 64 of file StorageHelper.h.
References tcpip::Storage::readDouble(), tcpip::Storage::readUnsignedByte(), and libsumo::TYPE_DOUBLE.
Referenced by libtraci::Domain< GET, SET >::getTraCIStage(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_Calibrator::processSet(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_Lane::processSet(), and readStage().
|
inlinestatic |
Definition at line 50 of file StorageHelper.h.
References tcpip::Storage::readInt(), tcpip::Storage::readUnsignedByte(), and libsumo::TYPE_INTEGER.
Referenced by libtraci::Domain< GET, SET >::getTraCIStage(), and readStage().
|
inlinestatic |
Definition at line 71 of file StorageHelper.h.
References tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), and libsumo::TYPE_STRING.
Referenced by libtraci::Domain< GET, SET >::getTraCIStage(), TraCIServerAPI_Lane::processGet(), 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(), and readStage().
|
inlinestatic |
Definition at line 78 of file StorageHelper.h.
References tcpip::Storage::readStringList(), tcpip::Storage::readUnsignedByte(), and libsumo::TYPE_STRINGLIST.
Referenced by libtraci::Domain< GET, SET >::getTraCIStage(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_Lane::processSet(), and readStage().
|
inlinestatic |
Definition at line 33 of file StorageHelper.h.
References libsumo::TraCIResult::getString(), libsumo::TraCIResult::getType(), libsumo::TYPE_DOUBLE, and libsumo::TYPE_STRING.
Referenced by libsumo::Helper::subscribe(), and libtraci::Connection::subscribe().
|
inlinestatic |
Definition at line 145 of file StorageHelper.h.
References libsumo::TYPE_COMPOUND, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_TrafficLight::processGet(), and writeStage().
|
inlinestatic |
Definition at line 150 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 164 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_Person::processGet(), and TraCIServerAPI_Simulation::processGet().
|
inlinestatic |
Definition at line 120 of file StorageHelper.h.
References libsumo::TYPE_BYTE, tcpip::Storage::writeByte(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIServerAPI_TrafficLight::writeConstraint().
|
inlinestatic |
Definition at line 130 of file StorageHelper.h.
References libsumo::TYPE_DOUBLE, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIServerAPI_Edge::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_TrafficLight::processGet(), and writeStage().
|
inlinestatic |
Definition at line 125 of file StorageHelper.h.
References libsumo::TYPE_INTEGER, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIServerAPI_GUI::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_TrafficLight::processGet(), and TraCIServerAPI_TrafficLight::writeConstraint().
|
inlinestatic |
Definition at line 135 of file StorageHelper.h.
References libsumo::TYPE_STRING, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_TrafficLight::processGet(), TraCIServerAPI_TrafficLight::writeConstraint(), and writeStage().
|
inlinestatic |
Definition at line 140 of file StorageHelper.h.
References libsumo::TYPE_STRINGLIST, tcpip::Storage::writeStringList(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIServerAPI_Lane::processGet(), TraCIServerAPI_TrafficLight::processGet(), TraCIServerAPI_TrafficLight::writeConstraint(), and writeStage().