38 #ifdef CHECK_MEMORY_LEAKS
40 #endif // CHECK_MEMORY_LEAKS
50 #pragma warning(disable: 4355)
53 : edge(*this), gui(*this), inductionloop(*this),
54 junction(*this), lane(*this), multientryexit(*this), poi(*this),
55 polygon(*this), route(*this), simulation(*this), trafficlights(*this),
59 #pragma warning(default: 4355)
123 unsigned int length = 1 + 1 + 1 + 4 + (
int) objID.length();
166 const std::vector<int>& vars)
const {
174 outMsg.
writeInt(5 + 1 + 4 + 4 + 4 + (
int) objID.length() + 1 + varNo);
184 for (
int i = 0; i < varNo; ++i) {
194 int domain,
SUMOReal range,
const std::vector<int>& vars)
const {
202 outMsg.
writeInt(5 + 1 + 4 + 4 + 4 + (
int) objID.length() + 1 + 8 + 1 + varNo);
215 for (
int i = 0; i < varNo; ++i) {
237 if (command != cmdId && !ignoreCommandId) {
242 }
catch (std::invalid_argument&) {
245 switch (resultType) {
251 if (acknowledgement != 0) {
252 (*acknowledgement) =
".. Command acknowledged (" +
toString(command) +
"), [description: " + msg +
"]";
258 if ((cmdStart + cmdLength) != (
int) inMsg.
position()) {
272 if (!ignoreCommandId && cmdId != (command + 0x10)) {
275 if (expectedType >= 0) {
277 if (valueDataType != expectedType) {
368 unsigned int size = inMsg.
readInt();
370 for (
unsigned int i = 0; i < size; ++i) {
403 std::vector<std::string>
408 unsigned int size = inMsg.
readInt();
409 std::vector<std::string> r;
410 for (
unsigned int i = 0; i < size; ++i) {
435 std::vector<std::string>
524 std::vector<std::string>
558 std::vector<std::string>
638 std::vector<std::string>
663 std::vector<std::string>
694 std::vector<std::string>
710 std::vector<std::string>
730 std::vector<std::string>
735 std::vector<std::string>
820 std::vector<std::string>
830 content.
writeInt((
int)allowedClasses.size());
831 for (
unsigned int i = 0; i < allowedClasses.size(); ++i) {
841 content.
writeInt((
int)disallowedClasses.size());
842 for (
unsigned int i = 0; i < disallowedClasses.size(); ++i) {
868 std::vector<std::string>
879 std::vector<std::string>
894 std::vector<std::string>
909 std::vector<std::string>
991 std::vector<std::string>
1024 content.
writeInt((
int)shape.size());
1025 for (
unsigned int i = 0; i < shape.size(); ++i) {
1056 int f = fill ? 1 : 0;
1061 content.
writeInt((
int)shape.size());
1062 for (
unsigned int i = 0; i < shape.size(); ++i) {
1082 std::vector<std::string>
1087 std::vector<std::string>
1118 std::vector<std::string>
1128 std::vector<std::string>
1138 std::vector<std::string>
1148 std::vector<std::string>
1158 std::vector<std::string>
1183 std::vector<std::string>
1193 std::vector<TraCIAPI::TraCILogic>
1198 std::vector<TraCIAPI::TraCILogic> ret;
1199 int logicNo = inMsg.
readInt();
1200 for (
int i = 0; i < logicNo; ++i) {
1208 int phaseIndex = inMsg.
readInt();
1210 int phaseNumber = inMsg.
readInt();
1211 std::vector<TraCIAPI::TraCIPhase> phases;
1212 for (
int j = 0; j < phaseNumber; ++j) {
1214 int duration = inMsg.
readInt();
1216 int duration1 = inMsg.
readInt();
1218 int duration2 = inMsg.
readInt();
1223 ret.push_back(
TraCIAPI::TraCILogic(subID, type, std::map<std::string, SUMOReal>(), phaseIndex, phases));
1228 std::vector<std::string>
1233 std::vector<TraCIAPI::TraCILink>
1238 std::vector<TraCIAPI::TraCILink> ret;
1240 for (
int i = 0; i < linkNo; ++i) {
1296 content.
writeInt(
int(1000 * phaseDuration));
1315 for (
int i = 0; i < (
int) logic.
phases.size(); ++i) {
1335 std::vector<std::string>