39 const std::string
id = inputStorage.
readString();
42 if (!libsumo::InductionLoop::handleVariable(
id, variable, &server)) {
45 std::vector<libsumo::TraCIVehicleData> vd = libsumo::InductionLoop::getVehicleData(
id);
50 tempContent.
writeInt((
int)vd.size());
75 "Get Induction Loop Variable: unsupported variable " +
toHex(variable, 2)
76 +
" specified", outputStorage);
std::string toHex(const T i, std::streamsize numDigits=0)
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xa0: Get Induction Loop Variable)
TraCI server used to control sumo by a remote TraCI client.
void writeStatusCmd(int commandId, int status, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage.
tcpip::Storage & getWrapperStorage()
void initWrapper(const int domainID, const int variable, const std::string &objID)
bool writeErrorStatusCmd(int commandId, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage with status = RTYPE_ERR.
void writeResponseWithLength(tcpip::Storage &outputStorage, tcpip::Storage &tempMsg)
virtual std::string readString()
virtual void writeString(const std::string &s)
virtual void writeInt(int)
virtual void writeDouble(double)
virtual int readUnsignedByte()
virtual void writeUnsignedByte(int)
virtual void writeStorage(tcpip::Storage &store)
TRACI_CONST int LAST_STEP_VEHICLE_DATA
TRACI_CONST int TYPE_COMPOUND
TRACI_CONST int TYPE_INTEGER
TRACI_CONST int RESPONSE_GET_INDUCTIONLOOP_VARIABLE
TRACI_CONST int TYPE_DOUBLE
TRACI_CONST int CMD_GET_INDUCTIONLOOP_VARIABLE
TRACI_CONST int TYPE_STRING
mirrors MSInductLoop::VehicleData