41 #ifdef CHECK_MEMORY_LEAKS 43 #endif // CHECK_MEMORY_LEAKS 67 std::vector<std::string> ids;
72 std::vector<std::string> ids;
90 std::string paramName =
"";
111 std::string warning =
"";
120 if (variable !=
ADD) {
129 std::vector<std::string> edgeIDs;
135 for (std::vector<std::string>::const_iterator i = edgeIDs.begin(); i != edgeIDs.end(); ++i) {
140 edges.push_back(edge);
142 const std::vector<SUMOVehicleParameter::Stop> stops;
162 ((
MSRoute*) r)->addParameter(name, value);
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.
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...
std::vector< const MSEdge * > ConstMSEdgeVector
virtual void writeUnsignedByte(int)
int size() const
Returns the number of edges to pass.
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
ConstMSEdgeVector::const_iterator MSRouteIterator
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)
const std::string & getParameter(const std::string &key, const std::string &defaultValue) const
Returns the value for a given key.
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.
MSRouteIterator begin() const
Returns the begin of the list of edges to pass.
MSRouteIterator end() const
Returns the end of the list of edges to pass.
static bool dictionary(const std::string &id, const MSRoute *route)
Adds a route to the dictionary.