35 #include <xercesc/sax/HandlerBase.hpp>
36 #include <xercesc/sax/AttributeList.hpp>
37 #include <xercesc/sax/SAXParseException.hpp>
38 #include <xercesc/sax/SAXException.hpp>
56 #ifdef CHECK_MEMORY_LEAKS
58 #endif // CHECK_MEMORY_LEAKS
128 WRITE_ERROR(
"Definition of tlLogic '" + currentTL->
getID() +
"' was not finished.");
141 WRITE_ERROR(
"Unknown traffic light type '" + typeS +
"' for tlLogic '" +
id +
"'.");
150 if (loadedDef == 0) {
159 WRITE_ERROR(
"Cannot load traffic light program for unknown id '" +
id +
"', programID '" + programID +
"'.");
166 std::vector<NBNode*> nodes = newDef->
getNodes();
167 for (std::vector<NBNode*>::iterator it = nodes.begin(); it != nodes.end(); it++) {
173 std::vector<NBNode*> nodes = newDef->
getNodes();
174 for (std::vector<NBNode*>::iterator it = nodes.begin(); it != nodes.end(); it++) {
175 (*it)->removeTrafficLight(newDef);
205 const std::vector<NBEdge::Connection>& connections = from->
getConnections();
206 std::vector<NBEdge::Connection>::const_iterator con_it;
207 con_it = find_if(connections.begin(), connections.end(),
209 if (con_it == connections.end()) {
211 " fromLane=" +
toString(fromLane) +
" toLane=" +
toString(toLane) +
" not found");
230 if (programs.size() > 0) {
231 std::map<std::string, NBTrafficLightDefinition*>::const_iterator it;
232 for (it = programs.begin(); it != programs.end(); it++) {
238 + tlID +
"' (program '" + it->first +
"')");
242 WRITE_ERROR(
"The traffic light '" + tlID +
"' is not known.");
253 if (programs.size() > 0) {
269 std::map<std::string, NBTrafficLightDefinition*>::const_iterator it;
270 for (it = programs.begin(); it != programs.end(); it++) {
276 + tlID +
"' (program '" + it->first +
"')");
286 std::string edgeID = attrs.
get<std::string>(attr, 0, ok);
289 WRITE_ERROR(
"Unknown edge '" + edgeID +
"' given in connection.");
299 int laneIndex = attrs.
get<
int>(attr, 0, ok);