summaryrefslogtreecommitdiff
path: root/starts/biscuit/simple_send.cpp
blob: 62820a0ac8c05f28627596300cecb269c0d97241 (plain)
1
2
3
4
5
6
7
8
9
10
// sends information as a text line on stdout
// works on StringValue 'text'

#include <opencog/atomspace/Handle.h>
#include <iostream>
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;
}