39 #include <xercesc/parsers/SAXParser.hpp>
40 #include <xercesc/sax2/SAX2XMLReader.hpp>
66 #ifdef CHECK_MEMORY_LEAKS
68 #endif // CHECK_MEMORY_LEAKS
84 WRITE_ERROR(
"Trying to set the effort for the unknown edge '" +
id +
"'.");
99 WRITE_ERROR(
"Trying to set the travel time for the unknown edge '" +
id +
"'.");
124 if (!
load(
"net-file")) {
128 #ifdef HAVE_INTERNAL_LANES
130 WRITE_WARNING(
"Network contains internal links but option --no-internal-links is set. Vehicles will 'jump' across junctions and thus underestimate route lenghts and travel times");
158 std::vector<SAXWeightsHandler::ToRetrieveDefinition*> retrieverDefs;
165 if (measure !=
"traveltime") {
166 if (measure ==
"CO" || measure ==
"CO2" || measure ==
"HC" || measure ==
"PMx" || measure ==
"NOx" || measure ==
"fuel") {
167 measure +=
"_perVeh";
175 for (std::vector<std::string>::iterator i = files.begin(); i != files.end(); ++i) {
186 if (!
load(
"route-files")) {
192 if (!
load(
"additional-files")) {
213 std::vector<SUMOTime> stateDumpTimes;
214 std::vector<std::string> stateDumpFiles;
216 for (std::vector<int>::const_iterator i = times.begin(); i != times.end(); ++i) {
221 if (stateDumpFiles.size() != stateDumpTimes.size()) {
226 for (std::vector<SUMOTime>::iterator i = stateDumpTimes.begin(); i != stateDumpTimes.end(); ++i) {
227 stateDumpFiles.push_back(prefix +
"_" +
time2string(*i) +
".sbx");
230 myNet.
closeBuilding(edges, junctions, routeLoaders, tlc, stateDumpTimes, stateDumpFiles);
253 for (std::vector<std::string>::const_iterator fileIt = files.begin(); fileIt != files.end(); ++fileIt) {
273 for (std::vector<std::string>::const_iterator fileIt = files.begin(); fileIt != files.end(); ++fileIt) {
275 throw ProcessError(
"The route file '" + *fileIt +
"' does not exist.");
279 for (std::vector<std::string>::const_iterator fileIt = files.begin(); fileIt != files.end(); ++fileIt) {