42 const std::string
id = inputStorage.
readString();
48 std::string paramName =
"";
72 std::string warning =
"";
bool readTypeCheckingColor(tcpip::Storage &inputStorage, libsumo::TraCIColor &into)
Reads the value type and a color, verifying the type.
static bool remove(const std::string &poiID, int layer=0)
static void setParameter(const std::string &poiID, const std::string &key, const std::string &value)
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xc7: Change PoI State)
static void setColor(const std::string &poiID, const TraCIColor &c)
bool readTypeCheckingInt(tcpip::Storage &inputStorage, int &into)
Reads the value type and an int, verifying the type.
bool readTypeCheckingString(tcpip::Storage &inputStorage, std::string &into)
Reads the value type and a string, verifying the type.
static bool add(const std::string &poiID, double x, double y, const TraCIColor &color, const std::string &poiType="", int layer=0)
virtual void writeUnsignedByte(int)
bool writeErrorStatusCmd(int commandId, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage with status = RTYPE_ERR.
virtual int readUnsignedByte()
#define CMD_GET_POI_VARIABLE
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper)
tcpip::Storage & getWrapperStorage()
virtual std::string readString()
#define CMD_SET_POI_VARIABLE
static void setType(const std::string &poiID, const std::string &setType)
TraCI server used to control sumo by a remote TraCI client.
void writeResponseWithLength(tcpip::Storage &outputStorage, tcpip::Storage &tempMsg)
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xa7: Get PoI Variable)
virtual void writeString(const std::string &s)
static std::string getParameter(const std::string &poiID, const std::string &key)
std::string toHex(const T i, std::streamsize numDigits=0)
#define RESPONSE_GET_POI_VARIABLE
bool readTypeCheckingPosition2D(tcpip::Storage &inputStorage, libsumo::TraCIPosition &into)
Reads the value type and a 2D position, verifying the type.
void writeStatusCmd(int commandId, int status, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage.
void initWrapper(const int domainID, const int variable, const std::string &objID)
static void setPosition(const std::string &poiID, double x, double y)