summaryrefslogtreecommitdiffstats
path: root/src/engine/events/RequestMetadataEvent.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-13 06:14:40 +0000
committerDavid Robillard <d@drobilla.net>2009-05-13 06:14:40 +0000
commita95e08e48c2d1f68693609627c6d6f52c6982264 (patch)
tree0feed2d49d10d6e8880bef4a7e88c52584c094cf /src/engine/events/RequestMetadataEvent.hpp
parentf62ef545425476959b1335f3a303d6d5f80ca0e5 (diff)
downloadingen-a95e08e48c2d1f68693609627c6d6f52c6982264.tar.gz
ingen-a95e08e48c2d1f68693609627c6d6f52c6982264.tar.bz2
ingen-a95e08e48c2d1f68693609627c6d6f52c6982264.zip
Generic simple query system for both objects and plugins.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1997 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/events/RequestMetadataEvent.hpp')
-rw-r--r--src/engine/events/RequestMetadataEvent.hpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/engine/events/RequestMetadataEvent.hpp b/src/engine/events/RequestMetadataEvent.hpp
index 5b163500..df1b1acd 100644
--- a/src/engine/events/RequestMetadataEvent.hpp
+++ b/src/engine/events/RequestMetadataEvent.hpp
@@ -23,7 +23,9 @@
#include "raul/URI.hpp"
namespace Ingen {
-
+
+namespace Shared { class ResourceImpl; }
+
class GraphObjectImpl;
@@ -38,7 +40,7 @@ public:
SharedPtr<Responder> responder,
SampleCount timestamp,
bool property,
- const Raul::Path& path,
+ const Raul::URI& path,
const Raul::URI& key);
void pre_process();
@@ -46,16 +48,17 @@ public:
void post_process();
private:
+ enum { NO_ERROR, NOT_FOUND } _error;
enum {
NONE,
PORT_VALUE
} _special_type;
- Raul::Path _path;
- bool _property;
- Raul::URI _key;
- Raul::Atom _value;
- GraphObjectImpl* _object;
+ Raul::URI _uri;
+ Raul::URI _key;
+ Raul::Atom _value;
+ Shared::ResourceImpl* _resource;
+ bool _is_property;
};