From fb40f19426ce147083c26c2fe9a9805f89fb8e9b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 14 Jan 2013 06:25:06 +0000 Subject: Add Node::to_serd_node(). git-svn-id: http://svn.drobilla.net/sord/trunk@279 3d64ff67-21c5-427c-a301-fe4f08042e5a --- NEWS | 3 ++- sord/sordmm.hpp | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 6b0bfd3..a442b33 100644 --- a/NEWS +++ b/NEWS @@ -2,9 +2,10 @@ sord (0.10.5) unstable; * Update to waf 1.7.8 and autowaf r90 (install docs to versioned directory) * sordmm.hpp: Add convenient constructors for decimal and integer literals + * sordmm.hpp: Add Node::to_serd_node() * sordmm.hpp: Don't automatically add RDF namespace prefix to world - -- David Robillard Mon, 14 Jan 2013 00:19:49 -0500 + -- David Robillard Mon, 14 Jan 2013 01:24:56 -0500 sord (0.10.4) stable; diff --git a/sord/sordmm.hpp b/sord/sordmm.hpp index 1f7d20f..4ab25e2 100644 --- a/sord/sordmm.hpp +++ b/sord/sordmm.hpp @@ -161,6 +161,10 @@ public: inline const SordNode* get_node() const { return _c_obj; } inline SordNode* get_node() { return _c_obj; } + const SerdNode* to_serd_node() { + return sord_node_to_serd_node(_c_obj); + } + inline bool is_valid() const { return type() != UNKNOWN; } inline bool operator<(const Node& other) const { -- cgit v1.2.1