diff options
author | Stefan Radomski <github@mintwerk.de> | 2017-07-13 23:15:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-13 23:15:57 (GMT) |
commit | 4a9b4978eca21c01e45bdea56ee97285b8ca11a7 (patch) | |
tree | 40a8f92a0abd081f59a8aacc4b726dabf3c8f2f5 /examples/cpp/library/simple/main.cpp | |
parent | f5198b3027a9a1d1de0aa92b2e62e13d0dc6f47d (diff) | |
parent | 04b04aa6624caf73ffe4fc33f918e7f48b27da37 (diff) | |
download | uscxml-4a9b4978eca21c01e45bdea56ee97285b8ca11a7.zip uscxml-4a9b4978eca21c01e45bdea56ee97285b8ca11a7.tar.gz uscxml-4a9b4978eca21c01e45bdea56ee97285b8ca11a7.tar.bz2 |
Merge pull request #162 from tklab-tud/sradomski
LambdaMonitors and prepared use-case examples
Diffstat (limited to 'examples/cpp/library/simple/main.cpp')
-rw-r--r-- | examples/cpp/library/simple/main.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/cpp/library/simple/main.cpp b/examples/cpp/library/simple/main.cpp new file mode 100644 index 0000000..316576b --- /dev/null +++ b/examples/cpp/library/simple/main.cpp @@ -0,0 +1,17 @@ +#include <iostream> +#include "uscxml/uscxml.h" + +int main(int argc, char *argv[]) +{ + if (argc < 2) { + std::cerr << "Expected URL with SCXML document as first argument" << std::endl; + return -1; + } + + uscxml::Interpreter sc = uscxml::Interpreter::fromURL(argv[1]); + uscxml::InterpreterState state; + while ((state = sc.step()) != uscxml::USCXML_FINISHED) { + } + + return 0; +} |