summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/scheme/xml-element.cpp
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2012-12-11 03:51:03 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2012-12-11 03:51:03 +0000
commitae0b7c0063db6236be2d7cf01ddbf2159f77c98c (patch)
tree2f64d65d018634b8728623e2ca99514541fab8aa /sca-cpp/trunk/modules/scheme/xml-element.cpp
parent1f3796522a078dda5906395ba471d151ad694b6b (diff)
Port kernel to C++11 and refactor some of the core modules. Convert functors to lambdas, and add C++ const, noexcept and inline annotations to get more efficient generated code.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1419985 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sca-cpp/trunk/modules/scheme/xml-element.cpp (renamed from sca-cpp/trunk/modules/scheme/xml-value.cpp)8
1 files changed, 4 insertions, 4 deletions
diff --git a/sca-cpp/trunk/modules/scheme/xml-value.cpp b/sca-cpp/trunk/modules/scheme/xml-element.cpp
index d88f754aa5..2050004895 100644
--- a/sca-cpp/trunk/modules/scheme/xml-value.cpp
+++ b/sca-cpp/trunk/modules/scheme/xml-element.cpp
@@ -25,16 +25,16 @@
#include "fstream.hpp"
#include "string.hpp"
-#include "xml.hpp"
#include "element.hpp"
+#include "../xml/xml.hpp"
#include "eval.hpp"
namespace tuscany {
namespace scheme {
-int xmlValue() {
- const value v = readXML(streamList(cin));
- cout << writeValue(v);
+const int xmlValue() {
+ const value v = content(xml::readElements(streamList(cin)));
+ write(content(writeValue(v)), cout);
return 0;
}