diff options
author | Stefan Radomski <github@mintwerk.de> | 2017-07-13 20:29:09 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2017-07-13 20:29:09 (GMT) |
commit | 04b04aa6624caf73ffe4fc33f918e7f48b27da37 (patch) | |
tree | 40a8f92a0abd081f59a8aacc4b726dabf3c8f2f5 /examples/cpp/library/simple/main.cpp | |
parent | e0d6ac8097bfd148a9956128a48b7d1addf81e68 (diff) | |
download | uscxml-04b04aa6624caf73ffe4fc33f918e7f48b27da37.zip uscxml-04b04aa6624caf73ffe4fc33f918e7f48b27da37.tar.gz uscxml-04b04aa6624caf73ffe4fc33f918e7f48b27da37.tar.bz2 |
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; +} |