diff options
author | David Robillard <d@drobilla.net> | 2006-10-28 04:59:44 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-10-28 04:59:44 +0000 |
commit | 90ab0227e7ce1abcb5b0b4eb455aa3c3845065d3 (patch) | |
tree | feea187323d05592e66ad02c772a4d083dbc173a /src/libs/client/Serializer.h | |
parent | f8e09808b7a51b474cbee66442cf7a03eed9010a (diff) | |
download | ingen-90ab0227e7ce1abcb5b0b4eb455aa3c3845065d3.tar.gz ingen-90ab0227e7ce1abcb5b0b4eb455aa3c3845065d3.tar.bz2 ingen-90ab0227e7ce1abcb5b0b4eb455aa3c3845065d3.zip |
Added proper new loading interface to Serializer, updated everything that uses it (no actual implementation yet).
git-svn-id: http://svn.drobilla.net/lad/ingen@194 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/Serializer.h')
-rw-r--r-- | src/libs/client/Serializer.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/libs/client/Serializer.h b/src/libs/client/Serializer.h index 15c49101..a6b89315 100644 --- a/src/libs/client/Serializer.h +++ b/src/libs/client/Serializer.h @@ -21,14 +21,16 @@ #include <utility> #include <string> #include <stdexcept> -#include <raptor.h> #include <cassert> +#include <boost/optional/optional.hpp> +#include <raptor.h> #include "raul/SharedPtr.h" #include "raul/Path.h" #include "raul/Atom.h" #include "ObjectModel.h" using std::string; +using boost::optional; namespace Ingen { namespace Client { @@ -61,17 +63,19 @@ public: string find_file(const string& filename, const string& additional_path = ""); - string load_patch(const string& filename, - const string& parent_path, - const string& name, - size_t poly, - MetadataMap initial_data, - bool existing = false); + bool load_patch(bool merge, + const string& data_base_uri, + const Path& data_path, + MetadataMap engine_data, + optional<const Path&> engine_parent = optional<const Path&>(), + optional<const string&> engine_name = optional<const string&>(), + optional<size_t> engine_poly = optional<size_t>()); + void start_to_filename(const string& filename) throw (std::logic_error); void start_to_string() throw (std::logic_error); - void serialize(SharedPtr<ObjectModel> object) throw (std::logic_error); - void serialize_connection(SharedPtr<ConnectionModel> c) throw (std::logic_error); + void serialize(SharedPtr<ObjectModel> object) throw (std::logic_error); + void serialize_connection(SharedPtr<ConnectionModel> c) throw (std::logic_error); string finish() throw (std::logic_error); private: |