From 6b6cb56b2ceab509569bfca247f108f2be5e25c0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 23 Feb 2013 19:55:13 +0000 Subject: Move Atom implementation out of Raul so it can depend on LV2. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5076 a436a847-0d15-0410-975c-d299462d15a1 --- ingen/Configuration.hpp | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) (limited to 'ingen/Configuration.hpp') diff --git a/ingen/Configuration.hpp b/ingen/Configuration.hpp index 6002a178..ffa9723e 100644 --- a/ingen/Configuration.hpp +++ b/ingen/Configuration.hpp @@ -25,10 +25,9 @@ #include #include +#include "ingen/Atom.hpp" #include "ingen/Forge.hpp" #include "ingen/URIMap.hpp" - -#include "raul/Atom.hpp" #include "raul/Exception.hpp" namespace Ingen { @@ -60,13 +59,13 @@ public: * @param type Type * @param value Default value */ - Configuration& add(const std::string& key, - const std::string& name, - char letter, - const std::string& desc, - Scope scope, - const Raul::Atom::TypeID type, - const Raul::Atom& value); + Configuration& add(const std::string& key, + const std::string& name, + char letter, + const std::string& desc, + Scope scope, + const LV2_URID type, + const Atom& value); void print_usage(const std::string& program, std::ostream& os); @@ -108,8 +107,8 @@ public: std::list load_default(const std::string& app, const std::string& filename); - const Raul::Atom& option(const std::string& long_name) const; - bool set(const std::string& long_name, const Raul::Atom& value); + const Atom& option(const std::string& long_name) const; + bool set(const std::string& long_name, const Atom& value); const std::list& files() const { return _files; } @@ -118,19 +117,19 @@ private: public: Option(const std::string& k, const std::string& n, char l, const std::string& d, Scope s, - const Raul::Atom::TypeID type, const Raul::Atom& def) + const LV2_URID type, const Atom& def) : key(k), name(n), letter(l) , desc(d), scope(s) , type(type), value(def) {} - std::string key; - std::string name; - char letter; - std::string desc; - Scope scope; - Raul::Atom::TypeID type; - Raul::Atom value; + std::string key; + std::string name; + char letter; + std::string desc; + Scope scope; + LV2_URID type; + Atom value; }; struct OptionNameOrder { -- cgit v1.2.1