From 7d2e7e186fcee41c46683a0b76e9531f94f91692 Mon Sep 17 00:00:00 2001 From: user Date: Wed, 23 Oct 2019 17:34:39 -0400 Subject: move content to starts folder for consolidation --- starts/biscuit/simple_send.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 starts/biscuit/simple_send.cpp (limited to 'starts/biscuit/simple_send.cpp') diff --git a/starts/biscuit/simple_send.cpp b/starts/biscuit/simple_send.cpp new file mode 100644 index 0000000..62820a0 --- /dev/null +++ b/starts/biscuit/simple_send.cpp @@ -0,0 +1,10 @@ +// sends information as a text line on stdout +// works on StringValue 'text' + +#include +#include +extern "C" void simple_send(opencog::Handle data) +{ + opencog::Handle text = data.getAtomSpace()->add_node(opencog::STRING_VALUE, "text"); + std::cout << data.getValue(text).to_string() << std::endl; +} -- cgit v1.2.3