103 std::string paramName =
"";
128 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 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)
T get(const std::string &id) const
Retrieves an item.
bool readTypeCheckingInt(tcpip::Storage &inputStorage, int &into)
Reads the value type and an int, verifying the type.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
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.
virtual void writeInt(int)
virtual int readUnsignedByte()
static bool add(const std::string &poiID, const TraCIPosition &pos, const TraCIColor &c, const std::string &type, int layer)
static void setPosition(const std::string &poiID, const TraCIPosition &pos)
ShapeContainer & getShapeContainer()
Returns the shapes container.
A point in 2D or 3D with translation and scaling methods.
#define CMD_GET_POI_VARIABLE
static TraCIPosition getPosition(const std::string &poiID)
virtual void writeStringList(const std::vector< std::string > &s)
virtual std::string readString()
static std::string getParameter(const std::string &poiID, const std::string ¶m)
#define CMD_SET_POI_VARIABLE
static void setType(const std::string &poiID, const std::string &setType)
static bool getPosition(const std::string &id, Position &p)
Returns the named PoI's position.
TraCI server used to control sumo by a remote TraCI client.
void writeResponseWithLength(tcpip::Storage &outputStorage, tcpip::Storage &tempMsg)
static std::vector< std::string > getIDList()
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)
std::string toHex(const T i, std::streamsize numDigits=0)
#define RESPONSE_GET_POI_VARIABLE
static std::string getType(const std::string &poiID)
bool readTypeCheckingPosition2D(tcpip::Storage &inputStorage, libsumo::TraCIPosition &into)
Reads the value type and a 2D position, verifying the type.
virtual void writeDouble(double)
void writeStatusCmd(int commandId, int status, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage.
static PointOfInterest * getPoI(const std::string &id)
Returns the named PoI.
static void setParameter(const std::string &poiID, const std::string ¶m, const std::string &value)
static TraCIColor getColor(const std::string &poiID)
const POIs & getPOIs() const
Returns all pois.