summaryrefslogtreecommitdiffstats
path: root/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-09-04 22:28:28 +0000
committerDavid Robillard <d@drobilla.net>2015-09-04 22:28:28 +0000
commit183195508e8f45bc571fac8955789e70570b8a1b (patch)
treeec9eb4ff7060b3b0beec0bebac2b26073e4189fd /ingen
parent9cfc41a86b30d4b10cffd5404c91ce852ab6a1a8 (diff)
downloadingen-183195508e8f45bc571fac8955789e70570b8a1b.tar.gz
ingen-183195508e8f45bc571fac8955789e70570b8a1b.tar.bz2
ingen-183195508e8f45bc571fac8955789e70570b8a1b.zip
Fix various atom conversion issues.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5719 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ingen')
-rw-r--r--ingen/Forge.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ingen/Forge.hpp b/ingen/Forge.hpp
index 683c0041..b9d98a1d 100644
--- a/ingen/Forge.hpp
+++ b/ingen/Forge.hpp
@@ -37,6 +37,10 @@ public:
std::string str(const Atom& atom, bool quoted=true);
+ bool is_uri(const Atom& atom) const {
+ return atom.type() == URI || atom.type() == URID;
+ }
+
Atom make() { return Atom(); }
Atom make(int32_t v) { return Atom(sizeof(v), Int, &v); }
Atom make(float v) { return Atom(sizeof(v), Float, &v); }