78 std::string paramName =
"";
101 std::string warning =
"";
114 std::vector<std::string> edgeIDs;
static void setParameter(const std::string &routeID, const std::string &key, const std::string &value)
static std::vector< std::string > getIDList()
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xc6: Change Route State)
bool readTypeCheckingString(tcpip::Storage &inputStorage, std::string &into)
Reads the value type and a string, verifying the type.
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.
#define CMD_GET_ROUTE_VARIABLE
virtual void writeInt(int)
virtual int readUnsignedByte()
#define CMD_SET_ROUTE_VARIABLE
static void add(const std::string &routeID, const std::vector< std::string > &edgeIDs)
bool readTypeCheckingStringList(tcpip::Storage &inputStorage, std::vector< std::string > &into)
Reads the value type and a string list, verifying the type.
virtual void writeStringList(const std::vector< std::string > &s)
virtual std::string readString()
TraCI server used to control sumo by a remote TraCI client.
void writeResponseWithLength(tcpip::Storage &outputStorage, tcpip::Storage &tempMsg)
static std::vector< std::string > getEdges(const std::string &routeID)
virtual void writeString(const std::string &s)
std::string toHex(const T i, std::streamsize numDigits=0)
#define RESPONSE_GET_ROUTE_VARIABLE
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xa6: Get Route Variable)
void writeStatusCmd(int commandId, int status, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage.
static std::string getParameter(const std::string &routeID, const std::string ¶m)