35 #ifdef CHECK_MEMORY_LEAKS
37 #endif // CHECK_MEMORY_LEAKS
47 #pragma warning(disable: 4355)
50 : edge(*this), gui(*this), inductionloop(*this),
51 junction(*this), lane(*this), multientryexit(*this), poi(*this),
52 polygon(*this), route(*this), simulation(*this), trafficlights(*this),
56 #pragma warning(default: 4355)
120 unsigned int length = 1 + 1 + 1 + 4 + (
int) objID.length();
163 const std::vector<int>& vars)
const {
171 outMsg.
writeInt(5 + 1 + 4 + 4 + 4 + (
int) objID.length() + 1 + varNo);
181 for (
int i = 0; i < varNo; ++i) {
191 int domain,
SUMOReal range,
const std::vector<int>& vars)
const {
199 outMsg.
writeInt(5 + 1 + 4 + 4 + 4 + (
int) objID.length() + 1 + 8 + 1 + varNo);
212 for (
int i = 0; i < varNo; ++i) {
234 if (command != cmdId && !ignoreCommandId) {
239 }
catch (std::invalid_argument&) {
242 switch (resultType) {
248 if (acknowledgement != 0) {
249 (*acknowledgement) =
".. Command acknowledged (" +
toString(command) +
"), [description: " + msg +
"]";
255 if ((cmdStart + cmdLength) != (
int) inMsg.
position()) {
269 if (!ignoreCommandId && cmdId != (command + 0x10)) {
272 if (expectedType >= 0) {
274 if (valueDataType != expectedType) {
365 unsigned int size = inMsg.
readInt();
367 for (
unsigned int i = 0; i < size; ++i) {
400 std::vector<std::string>
405 unsigned int size = inMsg.
readInt();
406 std::vector<std::string> r;
407 for (
unsigned int i = 0; i < size; ++i) {
432 std::vector<std::string>
521 std::vector<std::string>
555 std::vector<std::string>
635 std::vector<std::string>
660 std::vector<std::string>
691 std::vector<std::string>
707 std::vector<std::string>
727 std::vector<std::string>
732 std::vector<std::string>
817 std::vector<std::string>
827 content.
writeInt((
int)allowedClasses.size());
828 for (
unsigned int i = 0; i < allowedClasses.size(); ++i) {
838 content.
writeInt((
int)disallowedClasses.size());
839 for (
unsigned int i = 0; i < disallowedClasses.size(); ++i) {
866 std::vector<std::string>
881 std::vector<std::string>
896 std::vector<std::string>
978 std::vector<std::string>
1011 content.
writeInt((
int)shape.size());
1012 for (
unsigned int i = 0; i < shape.size(); ++i) {
1043 int f = fill ? 1 : 0;
1048 content.
writeInt((
int)shape.size());
1049 for (
unsigned int i = 0; i < shape.size(); ++i) {
1069 std::vector<std::string>
1074 std::vector<std::string>
1105 std::vector<std::string>
1115 std::vector<std::string>
1125 std::vector<std::string>
1135 std::vector<std::string>
1145 std::vector<std::string>
1170 std::vector<std::string>
1180 std::vector<TraCIAPI::TraCILogic>
1185 std::vector<TraCIAPI::TraCILogic> ret;
1186 int logicNo = inMsg.
readInt();
1187 for (
int i = 0; i < logicNo; ++i) {
1195 int phaseIndex = inMsg.
readInt();
1197 int phaseNumber = inMsg.
readInt();
1198 std::vector<TraCIAPI::TraCIPhase> phases;
1199 for (
int j = 0; j < phaseNumber; ++j) {
1201 int duration = inMsg.
readInt();
1203 int duration1 = inMsg.
readInt();
1205 int duration2 = inMsg.
readInt();
1210 ret.push_back(
TraCIAPI::TraCILogic(subID, type, std::map<std::string, SUMOReal>(), phaseIndex, phases));
1215 std::vector<std::string>
1220 std::vector<TraCIAPI::TraCILink>
1225 std::vector<TraCIAPI::TraCILink> ret;
1227 for (
int i = 0; i < linkNo; ++i) {
1283 content.
writeInt(
int(1000 * phaseDuration));
1302 for (
int i = 0; i < (
int) logic.
phases.size(); ++i) {
1322 std::vector<std::string>