33 #include <xercesc/sax/HandlerBase.hpp>
34 #include <xercesc/sax/AttributeList.hpp>
35 #include <xercesc/sax/SAXParseException.hpp>
36 #include <xercesc/sax/SAXException.hpp>
55 #ifdef CHECK_MEMORY_LEAKS
57 #endif // CHECK_MEMORY_LEAKS
107 WRITE_ERROR(
"Unmatched closing tag for tl-logic.");
125 WRITE_ERROR(
"Definition of tl-logic '" + currentTL->
getID() +
"' was not finished.");
138 if (loadedDef == 0) {
145 for (std::vector<NBNode*>::iterator it = nodes.begin(); it != nodes.end(); it++) {
146 (*it)->removeTrafficLight(newDef);
147 (*it)->addTrafficLight(loadedDef);
154 WRITE_WARNING(
"Traffic light '" +
id +
"' has unsupported type '" + type +
"' and will be converted to '" +
186 const std::vector<NBEdge::Connection> &connections = from->
getConnections();
187 std::vector<NBEdge::Connection>::const_iterator con_it;
188 con_it = find_if(connections.begin(), connections.end(),
190 if (con_it == connections.end()) {
192 " fromLane=" +
toString(fromLane) +
" toLane=" +
toString(toLane) +
" not found");
211 if (programs.size() > 0) {
212 std::map<std::string, NBTrafficLightDefinition*>::const_iterator it;
213 for (it = programs.begin(); it != programs.end(); it++) {
219 + tlID +
"' (program '" + it->first +
"')");
223 WRITE_ERROR(
"The traffic light '" + tlID +
"' is not known.");
234 if (programs.size() > 0) {
250 std::map<std::string, NBTrafficLightDefinition*>::const_iterator it;
251 for (it = programs.begin(); it != programs.end(); it++) {
257 + tlID +
"' (program '" + it->first +
"')");
270 WRITE_ERROR(
"Unknown edge '" + edgeID +
"' given in connection.");