diff options
author | David Robillard <d@drobilla.net> | 2011-04-18 12:47:15 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-18 12:47:15 +0000 |
commit | 8ba6bb943889bfdd58cf4a971a152041c1199cfe (patch) | |
tree | 91fbe8577e6d01070aa81f532ddd8102db1476f5 /src/serialisation/Parser.hpp | |
parent | 3cd3bfe5079f84fafb7dc217f5393d6ba947109c (diff) | |
download | ingen-8ba6bb943889bfdd58cf4a971a152041c1199cfe.tar.gz ingen-8ba6bb943889bfdd58cf4a971a152041c1199cfe.tar.bz2 ingen-8ba6bb943889bfdd58cf4a971a152041c1199cfe.zip |
Put engine code in new Ingen::Engine namespace.
Put core interfaces in Ingen namespace (not Ingen::Shared).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3159 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation/Parser.hpp')
-rw-r--r-- | src/serialisation/Parser.hpp | 89 |
1 files changed, 45 insertions, 44 deletions
diff --git a/src/serialisation/Parser.hpp b/src/serialisation/Parser.hpp index 1d7d36dd..b5e2db63 100644 --- a/src/serialisation/Parser.hpp +++ b/src/serialisation/Parser.hpp @@ -30,38 +30,39 @@ #include "ingen/GraphObject.hpp" namespace Sord { class World; class Model; class Node; } -namespace Ingen { namespace Shared { class CommonInterface; } } namespace Ingen { +class CommonInterface; + namespace Shared { class World; } namespace Serialisation { class Parser { public: - Parser(Ingen::Shared::World& world); + Parser(Shared::World& world); virtual ~Parser() {} - typedef Shared::GraphObject::Properties Properties; + typedef GraphObject::Properties Properties; virtual bool parse_file( - Ingen::Shared::World* world, - Shared::CommonInterface* target, + Shared::World* world, + CommonInterface* target, Glib::ustring document_uri, - boost::optional<Raul::Path> parent=boost::optional<Raul::Path>(), - boost::optional<Raul::Symbol> symbol=boost::optional<Raul::Symbol>(), - boost::optional<Properties> data=boost::optional<Properties>()); + boost::optional<Raul::Path> parent = boost::optional<Raul::Path>(), + boost::optional<Raul::Symbol> symbol = boost::optional<Raul::Symbol>(), + boost::optional<Properties> data = boost::optional<Properties>()); virtual bool parse_string( - Ingen::Shared::World* world, - Shared::CommonInterface* target, + Shared::World* world, + CommonInterface* target, const Glib::ustring& str, const Glib::ustring& base_uri, - boost::optional<Raul::Path> parent=boost::optional<Raul::Path>(), - boost::optional<Raul::Symbol> symbol=boost::optional<Raul::Symbol>(), - boost::optional<Properties> data=boost::optional<Properties>()); + boost::optional<Raul::Path> parent = boost::optional<Raul::Path>(), + boost::optional<Raul::Symbol> symbol = boost::optional<Raul::Symbol>(), + boost::optional<Properties> data = boost::optional<Properties>()); struct PatchRecord { PatchRecord(const Raul::URI& u, const Glib::ustring& f) @@ -73,51 +74,51 @@ public: typedef std::list<PatchRecord> PatchRecords; - virtual PatchRecords find_patches(Ingen::Shared::World* world, + virtual PatchRecords find_patches(Shared::World* world, const Glib::ustring& manifest_uri); private: boost::optional<Raul::Path> parse( - Ingen::Shared::World* world, - Shared::CommonInterface* target, + Shared::World* world, + CommonInterface* target, Sord::Model& model, Glib::ustring document_uri, - boost::optional<Raul::Path> data_path=boost::optional<Raul::Path>(), - boost::optional<Raul::Path> parent=boost::optional<Raul::Path>(), - boost::optional<Raul::Symbol> symbol=boost::optional<Raul::Symbol>(), - boost::optional<Properties> data=boost::optional<Properties>()); + boost::optional<Raul::Path> data_path = boost::optional<Raul::Path>(), + boost::optional<Raul::Path> parent = boost::optional<Raul::Path>(), + boost::optional<Raul::Symbol> symbol = boost::optional<Raul::Symbol>(), + boost::optional<Properties> data = boost::optional<Properties>()); boost::optional<Raul::Path> parse_patch( - Ingen::Shared::World* world, - Ingen::Shared::CommonInterface* target, - Sord::Model& model, - const Sord::Node& subject, - boost::optional<Raul::Path> parent=boost::optional<Raul::Path>(), - boost::optional<Raul::Symbol> symbol=boost::optional<Raul::Symbol>(), - boost::optional<Properties> data=boost::optional<Properties>()); + Shared::World* world, + CommonInterface* target, + Sord::Model& model, + const Sord::Node& subject, + boost::optional<Raul::Path> parent = boost::optional<Raul::Path>(), + boost::optional<Raul::Symbol> symbol = boost::optional<Raul::Symbol>(), + boost::optional<Properties> data = boost::optional<Properties>()); boost::optional<Raul::Path> parse_node( - Ingen::Shared::World* world, - Ingen::Shared::CommonInterface* target, - Sord::Model& model, - const Sord::Node& subject, - const Raul::Path& path, - boost::optional<Properties> data=boost::optional<Properties>()); + Shared::World* world, + CommonInterface* target, + Sord::Model& model, + const Sord::Node& subject, + const Raul::Path& path, + boost::optional<Properties> data = boost::optional<Properties>()); bool parse_properties( - Ingen::Shared::World* world, - Ingen::Shared::CommonInterface* target, - Sord::Model& model, - const Sord::Node& subject, - const Raul::URI& uri, - boost::optional<Properties> data = boost::optional<Properties>()); + Shared::World* world, + CommonInterface* target, + Sord::Model& model, + const Sord::Node& subject, + const Raul::URI& uri, + boost::optional<Properties> data = boost::optional<Properties>()); bool parse_connections( - Ingen::Shared::World* world, - Ingen::Shared::CommonInterface* target, - Sord::Model& model, - const Sord::Node& subject, - const Raul::Path& patch); + Shared::World* world, + CommonInterface* target, + Sord::Model& model, + const Sord::Node& subject, + const Raul::Path& patch); }; } // namespace Serialisation |