41 #ifdef CHECK_MEMORY_LEAKS
43 #endif // CHECK_MEMORY_LEAKS
67 std::vector<std::string> ids;
72 std::vector<std::string> ids;
102 std::string warning =
"";
105 if (variable !=
ADD) {
113 std::vector<std::string> edgeIDs;
119 for (std::vector<std::string>::const_iterator i = edgeIDs.begin(); i != edgeIDs.end(); ++i) {
124 edges.push_back(edge);
126 const std::vector<SUMOVehicleParameter::Stop> stops;
MSEdgeVector::const_iterator MSRouteIterator
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xc6: Change Route State)
static bool dictionary(const std::string &id, MSEdge *edge)
Inserts edge into the static dictionary Returns true if the key id isn't already in the dictionary...
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()
static void insertIDs(std::vector< std::string > &into)
A road/street connecting two junctions.
#define CMD_SET_ROUTE_VARIABLE
std::vector< const MSEdge * > MSEdgeVector
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)
virtual void writeString(const std::string &s)
MSRouteIterator end() const
Returns the end of the list of edges to pass.
#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)
unsigned size() const
Returns the number of edges to pass.
void writeStatusCmd(int commandId, int status, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage.
MSRouteIterator begin() const
Returns the begin of the list of edges to pass.
static bool dictionary(const std::string &id, const MSRoute *route)
Adds a route to the dictionary.