42 #include <mesosim/MELoop.h>
43 #include <mesosim/MESegment.h>
46 #ifdef CHECK_MEMORY_LEAKS
48 #endif // CHECK_MEMORY_LEAKS
75 of.
openTag(
"vehicles") <<
">\n";
77 const std::string indent(
" ");
83 for (; it != end; ++it) {
89 fclass = fclass.substr(0, fclass.find_first_of(
"@"));
100 <<
"\" angle=\"" << veh->
getAngle() <<
"\" x=\"" << pos.
x() <<
"\" y=\"" << pos.
y() <<
"\"";
121 const std::vector<MSEdge*>& edges = ec.
getEdges();
122 for (std::vector<MSEdge*>::const_iterator e = edges.begin(); e != edges.end(); ++e) {
128 const std::vector<MSLane*>& lanes = edge.
getLanes();
129 for (std::vector<MSLane*>::const_iterator lane = lanes.begin(); lane != lanes.end(); ++lane) {
147 <<
" id=\"" << lane.
getID()
169 for (std::vector<std::string>::const_iterator id_it = ids.begin(); id_it != ids.end(); ++id_it) {
173 std::vector<std::string> laneIDs;
174 for (MSTrafficLightLogic::LaneVectorVector::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
176 for (MSTrafficLightLogic::LaneVector::const_iterator j = llanes.begin(); j != llanes.end(); ++j) {
177 laneIDs.push_back((*j)->getID());
181 std::string lane_output =
"";
182 for (
unsigned int i1 = 0; i1 < laneIDs.size(); ++i1) {
183 lane_output += laneIDs[i1] +
" ";
187 of.
openTag(
"trafficlight") <<
" id=\"" << *id_it <<
"\" state=\"" << state <<
"\"";