40 const std::string
id = inputStorage.
readString();
43 if (!libsumo::LaneArea::handleVariable(
id, variable, &server, &inputStorage)) {
58 std::string warning =
"";
72 const int vehNum =
StoHelp::readTypedInt(inputStorage,
"Overriding the number of detected vehicles requires an integer");
73 libsumo::LaneArea::overrideVehicleNumber(
id, vehNum);
77 StoHelp::readCompound(inputStorage, 2,
"A compound object of size 2 is needed for setting a parameter.");
78 const std::string name =
StoHelp::readTypedString(inputStorage,
"The name of the parameter must be given as a string.");
80 libsumo::LaneArea::setParameter(
id, name,
value);
const std::string invalid_return< std::string >::value
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 0xa1: Get AreaDetector Variable).
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xcd: Set AreaDetector 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)
static int readCompound(tcpip::Storage &ret, int expectedSize=-1, const std::string &error="")
static int readTypedInt(tcpip::Storage &ret, const std::string &error="")
static std::string readTypedString(tcpip::Storage &ret, const std::string &error="")
An error which allows to continue.
virtual std::string readString()
virtual int readUnsignedByte()
TRACI_CONST int RESPONSE_GET_LANEAREA_VARIABLE
TRACI_CONST int CMD_GET_LANEAREA_VARIABLE
TRACI_CONST int VAR_PARAMETER
TRACI_CONST int CMD_SET_LANEAREA_VARIABLE
TRACI_CONST int VAR_VIRTUAL_DETECTION