35 #ifdef CHECK_MEMORY_LEAKS
37 #endif // CHECK_MEMORY_LEAKS
46 #pragma warning ( disable : 4355)
48 : edge(*this), gui(*this), inductionloop(*this),
49 junction(*this), lane(*this), multientryexit(*this), poi(*this),
50 polygon(*this), route(*this), simulation(*this), trafficlights(*this),
53 #pragma warning ( default : 4355 )
116 unsigned int length = 1 + 1 + 1 + 4 + (
int) objID.length();
159 const std::vector<int>& vars)
const {
167 outMsg.
writeInt(5 + 1 + 4 + 4 + 4 + (
int) objID.length() + 1 + varNo);
177 for (
int i = 0; i < varNo; ++i) {
187 int domain,
SUMOReal range,
const std::vector<int>& vars)
const {
195 outMsg.
writeInt(5 + 1 + 4 + 4 + 4 + (
int) objID.length() + 1 + 8 + 1 + varNo);
208 for (
int i = 0; i < varNo; ++i) {
230 if (command != cmdId && !ignoreCommandId) {
235 }
catch (std::invalid_argument&) {
238 switch (resultType) {
244 if (acknowledgement != 0) {
245 (*acknowledgement) =
".. Command acknowledged (" +
toString(command) +
"), [description: " + msg +
"]";
251 if ((cmdStart + cmdLength) != (
int) inMsg.
position()) {
265 if (!ignoreCommandId && cmdId != (command + 0x10)) {
268 if (expectedType >= 0) {
270 if (valueDataType != expectedType) {
361 unsigned int size = inMsg.
readInt();
363 for (
unsigned int i = 0; i < size; ++i) {
396 std::vector<std::string>
401 unsigned int size = inMsg.
readInt();
402 std::vector<std::string> r;
403 for (
unsigned int i = 0; i < size; ++i) {
428 std::vector<std::string>
517 std::vector<std::string>
551 std::vector<std::string>
631 std::vector<std::string>
656 std::vector<std::string>
687 std::vector<std::string>
703 std::vector<std::string>
723 std::vector<std::string>
728 std::vector<std::string>
813 std::vector<std::string>
823 content.
writeInt((
int)allowedClasses.size());
824 for (
unsigned int i = 0; i < allowedClasses.size(); ++i) {
834 content.
writeInt((
int)disallowedClasses.size());
835 for (
unsigned int i = 0; i < disallowedClasses.size(); ++i) {
862 std::vector<std::string>
877 std::vector<std::string>
892 std::vector<std::string>
974 std::vector<std::string>
1007 content.
writeInt((
int)shape.size());
1008 for (
unsigned int i = 0; i < shape.size(); ++i) {
1039 int f = fill ? 1 : 0;
1044 content.
writeInt((
int)shape.size());
1045 for (
unsigned int i = 0; i < shape.size(); ++i) {
1065 std::vector<std::string>
1070 std::vector<std::string>
1101 std::vector<std::string>
1111 std::vector<std::string>
1121 std::vector<std::string>
1131 std::vector<std::string>
1141 std::vector<std::string>
1166 std::vector<std::string>
1176 std::vector<TraCIAPI::TraCILogic>
1181 std::vector<TraCIAPI::TraCILogic> ret;
1182 int logicNo = inMsg.
readInt();
1183 for (
int i = 0; i < logicNo; ++i) {
1191 int phaseIndex = inMsg.
readInt();
1193 int phaseNumber = inMsg.
readInt();
1194 std::vector<TraCIAPI::TraCIPhase> phases;
1195 for (
int j = 0; j < phaseNumber; ++j) {
1197 int duration = inMsg.
readInt();
1199 int duration1 = inMsg.
readInt();
1201 int duration2 = inMsg.
readInt();
1206 ret.push_back(
TraCIAPI::TraCILogic(subID, type, std::map<std::string, SUMOReal>(), phaseIndex, phases));
1211 std::vector<std::string>
1216 std::vector<TraCIAPI::TraCILink>
1221 std::vector<TraCIAPI::TraCILink> ret;
1223 for (
int i = 0; i < linkNo; ++i) {
1279 content.
writeInt(
int(1000 * phaseDuration));
1298 for (
int i = 0; i < (
int) logic.
phases.size(); ++i) {
1318 std::vector<std::string>