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
126 WRITE_ERROR(
"Definition of tlLogic '" + currentTL->
getID() +
"' was not finished.");
139 WRITE_ERROR(
"Unknown traffic light type '" + typeS +
"' for tlLogic '" +
id +
"'.");
148 if (loadedDef == 0) {
157 WRITE_ERROR(
"Cannot load traffic light program for unknown id '" +
id +
"', programID '" + programID +
"'.");
165 for (std::vector<NBNode*>::iterator it = nodes.begin(); it != nodes.end(); it++) {
171 for (std::vector<NBNode*>::iterator it = nodes.begin(); it != nodes.end(); it++) {
172 (*it)->removeTrafficLight(newDef);
202 const std::vector<NBEdge::Connection>& connections = from->
getConnections();
203 std::vector<NBEdge::Connection>::const_iterator con_it;
204 con_it = find_if(connections.begin(), connections.end(),
206 if (con_it == connections.end()) {
208 " fromLane=" +
toString(fromLane) +
" toLane=" +
toString(toLane) +
" not found");
227 if (programs.size() > 0) {
228 std::map<std::string, NBTrafficLightDefinition*>::const_iterator it;
229 for (it = programs.begin(); it != programs.end(); it++) {
235 + tlID +
"' (program '" + it->first +
"')");
239 WRITE_ERROR(
"The traffic light '" + tlID +
"' is not known.");
250 if (programs.size() > 0) {
266 std::map<std::string, NBTrafficLightDefinition*>::const_iterator it;
267 for (it = programs.begin(); it != programs.end(); it++) {
273 + tlID +
"' (program '" + it->first +
"')");
283 std::string edgeID = attrs.
get<std::string>(attr, 0, ok);
286 WRITE_ERROR(
"Unknown edge '" + edgeID +
"' given in connection.");
296 int laneIndex = attrs.
get<
int>(attr, 0, ok);