diff options
author | David Robillard <d@drobilla.net> | 2013-02-02 16:58:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-02-02 16:58:42 +0000 |
commit | 3265e8f01cd4e878661973730349a5ed44329713 (patch) | |
tree | 9e62a609edeba00bba462efc242952af7476b41d /src/Forge.cpp | |
parent | 05d020a36581fdc9c5038339e52208f7d9f3e60e (diff) | |
download | ingen-3265e8f01cd4e878661973730349a5ed44329713.tar.gz ingen-3265e8f01cd4e878661973730349a5ed44329713.tar.bz2 ingen-3265e8f01cd4e878661973730349a5ed44329713.zip |
More generic Atom class.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5024 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Forge.cpp')
-rw-r--r-- | src/Forge.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Forge.cpp b/src/Forge.cpp index d74f42ee..ffd87bbc 100644 --- a/src/Forge.cpp +++ b/src/Forge.cpp @@ -38,17 +38,17 @@ Forge::str(const Raul::Atom& atom) { std::ostringstream ss; if (atom.type() == Int) { - ss << atom.get_int32(); + ss << atom.get<int32_t>(); } else if (atom.type() == Float) { - ss << atom.get_float(); + ss << atom.get<float>(); } else if (atom.type() == Bool) { - ss << (atom.get_bool() ? "true" : "false"); + ss << (atom.get<int32_t>() ? "true" : "false"); } else if (atom.type() == URI) { - ss << "<" << atom.get_uri() << ">"; + ss << "<" << atom.get<const char*>() << ">"; } else if (atom.type() == URID) { - ss << "<" << _map.unmap_uri(atom.get_int32()) << ">"; + ss << "<" << _map.unmap_uri(atom.get<int32_t>()) << ">"; } else if (atom.type() == String) { - ss << "\"" << atom.get_string() << "\""; + ss << "\"" << atom.get<const char*>() << "\""; } return ss.str(); } |