33 #include <xercesc/sax/HandlerBase.hpp>
34 #include <xercesc/sax/AttributeList.hpp>
35 #include <xercesc/sax/SAXParseException.hpp>
36 #include <xercesc/sax/SAXException.hpp>
54 #ifdef CHECK_MEMORY_LEAKS
56 #endif // CHECK_MEMORY_LEAKS
106 WRITE_ERROR(
"Unmatched closing tag for tl-logic.");
124 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);
181 const std::vector<NBEdge::Connection>& connections = from->
getConnections();
182 std::vector<NBEdge::Connection>::const_iterator con_it;
183 con_it = find_if(connections.begin(), connections.end(),
185 if (con_it == connections.end()) {
187 " fromLane=" +
toString(fromLane) +
" toLane=" +
toString(toLane) +
" not found");
206 if (programs.size() > 0) {
207 std::map<std::string, NBTrafficLightDefinition*>::const_iterator it;
208 for (it = programs.begin(); it != programs.end(); it++) {
214 + tlID +
"' (program '" + it->first +
"')");
218 WRITE_ERROR(
"The traffic light '" + tlID +
"' is not known.");
229 if (programs.size() > 0) {
245 std::map<std::string, NBTrafficLightDefinition*>::const_iterator it;
246 for (it = programs.begin(); it != programs.end(); it++) {
252 + tlID +
"' (program '" + it->first +
"')");
265 WRITE_ERROR(
"Unknown edge '" + edgeID +
"' given in connection.");