summaryrefslogtreecommitdiffstats
path: root/include/ingen/shared/URIs.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-12 06:59:48 +0000
committerDavid Robillard <d@drobilla.net>2012-03-12 06:59:48 +0000
commit81e9fb3245bd461ebfee4cfa16d1792e48533f9e (patch)
treeeb1b30d79cba70dda9d832100dd7c14b08085b03 /include/ingen/shared/URIs.hpp
parente9d9569271ee962c09ab66c6babed1ca5655a6c6 (diff)
downloadingen-81e9fb3245bd461ebfee4cfa16d1792e48533f9e.tar.gz
ingen-81e9fb3245bd461ebfee4cfa16d1792e48533f9e.tar.bz2
ingen-81e9fb3245bd461ebfee4cfa16d1792e48533f9e.zip
Centralise atom creation in forge object.
Aside from being more greppable and making realtime violations more obvious, this is a step towards using LV2 atoms internally (which needs a factory since the type numbers are dynamic). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4054 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'include/ingen/shared/URIs.hpp')
-rw-r--r--include/ingen/shared/URIs.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/ingen/shared/URIs.hpp b/include/ingen/shared/URIs.hpp
index 405f1276..01464589 100644
--- a/include/ingen/shared/URIs.hpp
+++ b/include/ingen/shared/URIs.hpp
@@ -22,12 +22,16 @@
#include "raul/URI.hpp"
+namespace Raul {
+ class Forge;
+}
+
namespace Ingen {
namespace Shared {
class URIs : public boost::noncopyable {
public:
- URIs();
+ URIs(Raul::Forge& forge);
uint32_t map_uri(const char* uri);
const char* unmap_uri(uint32_t urid);
@@ -38,6 +42,8 @@ public:
uint32_t id;
};
+ Raul::Forge& forge;
+
const Quark atom_Bool;
const Quark atom_Float;
const Quark atom_Int32;