Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
libsumo::StorageHelper Class Reference

#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::StoragetoStorage (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)
 

Detailed Description

Definition at line 31 of file StorageHelper.h.

Member Function Documentation

◆ readBool()

static bool libsumo::StorageHelper::readBool ( tcpip::Storage ret,
const std::string &  error = "" 
)
inlinestatic

Definition at line 96 of file StorageHelper.h.

References tcpip::Storage::readUnsignedByte(), and libsumo::TYPE_UBYTE.

◆ readCompound()

static int libsumo::StorageHelper::readCompound ( tcpip::Storage ret,
int  expectedSize = -1,
const std::string &  error = "" 
)
inlinestatic

◆ readStage()

static void libsumo::StorageHelper::readStage ( tcpip::Storage inputStorage,
libsumo::TraCIStage stage,
const std::string &  error = "" 
)
inlinestatic

◆ readTypedByte()

static int libsumo::StorageHelper::readTypedByte ( tcpip::Storage ret,
const std::string &  error = "" 
)
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().

Here is the caller graph for this function:

◆ readTypedDouble()

static double libsumo::StorageHelper::readTypedDouble ( tcpip::Storage ret,
const std::string &  error = "" 
)
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().

Here is the caller graph for this function:

◆ readTypedInt()

static int libsumo::StorageHelper::readTypedInt ( tcpip::Storage ret,
const std::string &  error = "" 
)
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().

Here is the caller graph for this function:

◆ readTypedString()

◆ readTypedStringList()

static std::vector< std::string > libsumo::StorageHelper::readTypedStringList ( tcpip::Storage ret,
const std::string &  error = "" 
)
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().

Here is the caller graph for this function:

◆ toStorage()

static std::shared_ptr< tcpip::Storage > libsumo::StorageHelper::toStorage ( const TraCIResult v)
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().

Here is the caller graph for this function:

◆ writeCompound()

static void libsumo::StorageHelper::writeCompound ( tcpip::Storage content,
int  size 
)
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().

Here is the caller graph for this function:

◆ writePolygon()

static void libsumo::StorageHelper::writePolygon ( tcpip::Storage content,
const libsumo::TraCIPositionVector shape 
)
inlinestatic

◆ writeStage()

◆ writeTypedByte()

static void libsumo::StorageHelper::writeTypedByte ( tcpip::Storage content,
int  value 
)
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().

Here is the caller graph for this function:

◆ writeTypedDouble()

static void libsumo::StorageHelper::writeTypedDouble ( tcpip::Storage content,
double  value 
)
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().

Here is the caller graph for this function:

◆ writeTypedInt()

static void libsumo::StorageHelper::writeTypedInt ( tcpip::Storage content,
int  value 
)
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().

Here is the caller graph for this function:

◆ writeTypedString()

static void libsumo::StorageHelper::writeTypedString ( tcpip::Storage content,
const std::string &  value 
)
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().

Here is the caller graph for this function:

◆ writeTypedStringList()

static void libsumo::StorageHelper::writeTypedStringList ( tcpip::Storage content,
const std::vector< std::string > &  value 
)
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().

Here is the caller graph for this function:

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