summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-07-19 17:46:37 (GMT)
committerGitHub <noreply@github.com>2017-07-19 17:46:37 (GMT)
commit998e624aaddb237767f5d80e0ff12eb2cfdc814b (patch)
tree7583d7bf04d760d8b889a5618b7d98679ef4b423 /README.md
parent4a9b4978eca21c01e45bdea56ee97285b8ca11a7 (diff)
parente0a7e43e2e41639bb50127cc5419b712a7b1f6e2 (diff)
downloaduscxml-998e624aaddb237767f5d80e0ff12eb2cfdc814b.zip
uscxml-998e624aaddb237767f5d80e0ff12eb2cfdc814b.tar.gz
uscxml-998e624aaddb237767f5d80e0ff12eb2cfdc814b.tar.bz2
Merge pull request #163 from tklab-tud/sradomski
DOM with Lua DataModel and dropped V8
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 11 insertions, 2 deletions
diff --git a/README.md b/README.md
index c1f7ea7..9a1e352 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,6 @@
#### Quick Links
- [Building from source](http://tklab-tud.github.io/uscxml/building.html)
-- [Changes](docs/CHANGES.md)
- [Tests passed](test/w3c/TESTS.md)
- [Publications](docs/PUBLICATIONS.md)
- [Benchmarks](docs/BENCHMARKS.md)
@@ -50,6 +49,12 @@ For more detailled information, refer to the [documentation](http://tklab-tud.gi
### Embedded as a Library
uscxml::Interpreter scxml = uscxml::Interpreter::fromURL("...");
+ scxml.on().enterState([](const std::string& sessionId,
+ const std::string& stateName,
+ const xercesc_3_1::DOMElement* state) {
+ std::cout << "Entered " << stateName << std::endl;
+ });
+
while(scxml.step() != uscxml::USCXML_FINISHED) {
...
}
@@ -74,11 +79,15 @@ For more detailled information, refer to the [documentation](http://tklab-tud.gi
**Examples:**
* [test-gen-c.cpp](https://github.com/tklab-tud/uscxml/blob/master/test/src/test-gen-c.cpp) (**C++**)
-* [WaterPump.cxx](https://github.com/tklab-tud/uscxml/blob/master/src/apps/arduino/WaterPump.cxx) (**C++ on Arduino**)
+* [WaterPump.cxx](https://github.com/tklab-tud/uscxml/blob/master/examples/cpp/transpiled/arduino/WaterPump.cxx) (**C++ on Arduino**)
## Changes
+ * **[9db80409b3ca048c4b404a43d2c224f374c0090a](https://github.com/tklab-tud/uscxml/pull/163/commits/9db80409b3ca048c4b404a43d2c224f374c0090a):**
+
+ We **dropped support for Google's V8 ECMAScript engine**. The API is changing too fast and there is no reliable way to get / build / identify older versions. The latest branch will not work with the wrappers generated from even SWIG 4.0 and I have no time to keep up with them. Use JavaScriptCore, its API is unchanged since we started to support it in 2012. If you feel capable to maintain the [](V8DataModel.cpp) send a push request. Everything will be left in place but we will ignore `libv8` at configure time. I may have another look when a number of Linux distribution settled on a more recent version, most are still shipping v8 in version 3.14.
+
* **[bfefa5fd44b9ed1491612f26b099db8ad624247b](https://github.com/tklab-tud/uscxml/pull/155/commits/bfefa5fd44b9ed1491612f26b099db8ad624247b):**
We **broke the InterpreterMonitor** API by substituting the Interpreter instance in the first formal parameter by its sessionId throughout all callbacks. Retrieving the actual Interpreter involved locking a weak_ptr into a shared_ptr which proved to be a performance bottleneck. You can retrieve the Interpreter from its sessionId via the new static method `Interpreter::fromSessionId` if you actually need.