40 #include <xercesc/sax/SAXException.hpp>
41 #include <xercesc/sax/SAXParseException.hpp>
70 #ifdef CHECK_MEMORY_LEAKS
72 #endif // CHECK_MEMORY_LEAKS
83 if (!oc.
isSet(
"detector-files")) {
84 throw ProcessError(
"No detector file given (use --detector-files <FILE>).");
88 for (std::vector<std::string>::const_iterator fileIt = files.begin(); fileIt != files.end(); ++fileIt) {
90 throw ProcessError(
"Could not open detector file '" + *fileIt +
"'");
106 if (!oc.
isSet(
"measure-files")) {
112 for (std::vector<std::string>::const_iterator fileIt = files.begin(); fileIt != files.end(); ++fileIt) {
114 throw ProcessError(
"The measure-file '" + *fileIt +
"' can not be opened.");
128 if (oc.
getBool(
"print-absolute-flows")) {
134 if (oc.
getBool(
"remove-empty-detectors")) {
138 }
else if (oc.
getBool(
"report-empty-detectors")) {
151 oc.
getBool(
"all-end-follower"), oc.
getBool(
"keep-unfinished-routes"),
153 oc.
getInt(
"max-search-depth"));
161 throw ProcessError(
"The detector types are not defined; use in combination with a network");
165 throw ProcessError(
"The emitters have no routes; use in combination with a network");
169 if (oc.
isSet(
"detector-output")) {
173 if (oc.
isSet(
"detectors-poi-output")) {
183 if (oc.
getBool(
"guess-empty-flows")) {
193 if (oc.
isSet(
"emitters-output") || oc.
isSet(
"emitters-poi-output")) {
195 if (oc.
getBool(
"revalidate-flows")) {
200 if (oc.
isSet(
"emitters-output")) {
205 oc.
getBool(
"calibrator-output"),
206 oc.
getBool(
"include-unused-routes"),
212 if (oc.
isSet(
"emitters-poi-output")) {
219 if (oc.
isSet(
"variable-speed-sign-output")) {
226 if (oc.
isSet(
"validation-output")) {
229 oc.
getBool(
"validation-output.add-sources"),
true,
true);
233 if (oc.
isSet(
"end-reroute-output")) {
292 if (std::string(e.what()) != std::string(
"Process Error") && std::string(e.what()) != std::string(
"")) {
298 }
catch (
const std::exception& e) {
299 if (std::string(e.what()) != std::string(
"")) {
314 std::cout <<
"Success." << std::endl;