From d180cc071b592940d4b4cf0283823d29578f1422 Mon Sep 17 00:00:00 2001 From: user Date: Tue, 27 Aug 2019 19:16:51 -0400 Subject: some files to help me jog my memory elsewhere --- simple_send.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 simple_send.cpp (limited to 'simple_send.cpp') diff --git a/simple_send.cpp b/simple_send.cpp new file mode 100644 index 0000000..62820a0 --- /dev/null +++ b/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