40 #include <xercesc/sax/SAXException.hpp>
41 #include <xercesc/sax/SAXParseException.hpp>
71 #ifdef CHECK_MEMORY_LEAKS
73 #endif // CHECK_MEMORY_LEAKS
84 if (!oc.
isSet(
"detector-files")) {
85 throw ProcessError(
"No detector file given (use --detector-files <FILE>).");
89 for (std::vector<std::string>::const_iterator fileIt = files.begin(); fileIt != files.end(); ++fileIt) {
91 throw ProcessError(
"Could not open detector file '" + *fileIt +
"'");
107 if (!oc.
isSet(
"measure-files")) {
113 for (std::vector<std::string>::const_iterator fileIt = files.begin(); fileIt != files.end(); ++fileIt) {
115 throw ProcessError(
"The measure-file '" + *fileIt +
"' can not be opened.");
129 if (oc.
getBool(
"print-absolute-flows")) {
135 if (oc.
getBool(
"remove-empty-detectors")) {
139 }
else if (oc.
getBool(
"report-empty-detectors")) {
152 oc.
getBool(
"all-end-follower"), oc.
getBool(
"keep-unfinished-routes"),
154 oc.
getInt(
"max-search-depth"));
162 throw ProcessError(
"The detector types are not defined; use in combination with a network");
166 throw ProcessError(
"The emitters have no routes; use in combination with a network");
170 if (oc.
isSet(
"detector-output")) {
174 if (oc.
isSet(
"detectors-poi-output")) {
184 if (oc.
getBool(
"guess-empty-flows")) {
194 if (oc.
isSet(
"emitters-output") || oc.
isSet(
"emitters-poi-output")) {
196 if (oc.
getBool(
"revalidate-flows")) {
201 if (oc.
isSet(
"emitters-output")) {
206 oc.
getBool(
"calibrator-output"),
207 oc.
getBool(
"include-unused-routes"),
209 oc.
getInt(
"max-search-depth"),
213 if (oc.
isSet(
"emitters-poi-output")) {
220 if (oc.
isSet(
"variable-speed-sign-output")) {
227 if (oc.
isSet(
"validation-output")) {
230 oc.
getBool(
"validation-output.add-sources"),
true,
true);
234 if (oc.
isSet(
"end-reroute-output")) {
293 if (std::string(e.what()) != std::string(
"Process Error") && std::string(e.what()) != std::string(
"")) {
310 std::cout <<
"Success." << std::endl;