Closed ngeiswei closed 6 years ago
Overloading oc_to_string
for combo_tree
and vertex
would be a good start.
PR #9 overloads oc_to_string
for combo_tree
and vertex
. However I let that issue open as it could be overloaded for more C++ structures such as CTable and many more.
oc_to_string
now needs to take an indent argument in order to be callable by poc
, see https://github.com/opencog/atomspace/pull/1785
oc_to_string
is defined in the atomspace and opencog repositories to pretty print OpenCog C++ data structures likeHandle
in a way that is easy to call withing a debugger like gdb. See for instance https://github.com/opencog/atomspace/blob/master/opencog/atoms/base/Handle.h#L278It would be convenient if
oc_to_string
was overloaded for MOSES data structures as well.