diff options
author | Stefan Radomski <github@mintwerk.de> | 2016-11-28 17:03:31 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2016-11-28 17:03:31 (GMT) |
commit | a6313d4ab2005196f376870c9ca945c691948416 (patch) | |
tree | 5345422d235e7c511885601854b6a2923db09e2e /apps | |
parent | fcfc842a1ccee7a6b2579889f3236d50849c0679 (diff) | |
download | uscxml-a6313d4ab2005196f376870c9ca945c691948416.zip uscxml-a6313d4ab2005196f376870c9ca945c691948416.tar.gz uscxml-a6313d4ab2005196f376870c9ca945c691948416.tar.bz2 |
Refactored Java into bindings and generated
Diffstat (limited to 'apps')
-rw-r--r-- | apps/uscxml-transform.cpp | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/apps/uscxml-transform.cpp b/apps/uscxml-transform.cpp index b85879a..d9be7cf 100644 --- a/apps/uscxml-transform.cpp +++ b/apps/uscxml-transform.cpp @@ -125,6 +125,7 @@ int main(int argc, char** argv) { break; case 'o': outputFile = optarg; + extensions.insert(std::pair<std::string, std::string>("outputFile", outputFile)); break; case 'l': break; @@ -370,38 +371,15 @@ int main(int argc, char** argv) { outStream.close(); } -#if 0 - if (options.size() > 0) { - ChartToFSM annotater(interpreter); - if (std::find(options.begin(), options.end(), "priority") != options.end()) - annotater.indexTransitions(); - if (std::find(options.begin(), options.end(), "conflicts") != options.end()) - annotater.annotateConflicts(); - if (std::find(options.begin(), options.end(), "exitset") != options.end()) - annotater.annotateExitSet(); - if (std::find(options.begin(), options.end(), "entryset") != options.end()) - annotater.annotateEntrySet(); - if (std::find(options.begin(), options.end(), "domain") != options.end()) - annotater.annotateDomain(); - - if (outputFile.size() == 0 || outputFile == "-") { - std::cout << annotater.getDocument(); - } else { - std::ofstream outStream; - outStream.open(outputFile.c_str()); - outStream << annotater.getDocument(); - outStream.close(); - } - exit(EXIT_SUCCESS); - } -#endif } catch (Event e) { std::cout << e << std::endl; + return EXIT_FAILURE; } catch (const std::exception &e) { std::cout << e.what() << std::endl; + return EXIT_FAILURE; } - return EXIT_SUCCESS; + return EXIT_SUCCESS; } |