diff options
Diffstat (limited to 'src/libs/client')
-rw-r--r-- | src/libs/client/ModelEngineInterface.cpp | 10 | ||||
-rw-r--r-- | src/libs/client/ModelEngineInterface.h | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/libs/client/ModelEngineInterface.cpp b/src/libs/client/ModelEngineInterface.cpp index 40de205c..a7c0df6a 100644 --- a/src/libs/client/ModelEngineInterface.cpp +++ b/src/libs/client/ModelEngineInterface.cpp @@ -63,6 +63,16 @@ ModelEngineInterface::create_patch_with_data(const Path& path, size_t poly, cons } +void +ModelEngineInterface::create_port_with_data(const Path& path, + const string& data_type, + bool direction, + const MetadataMap& data) +{ + create_port(path, data_type, direction); + set_metadata_map(path, data); +} + /** Set all pieces of metadata in a map. */ void diff --git a/src/libs/client/ModelEngineInterface.h b/src/libs/client/ModelEngineInterface.h index e97947a3..f67755e8 100644 --- a/src/libs/client/ModelEngineInterface.h +++ b/src/libs/client/ModelEngineInterface.h @@ -52,6 +52,11 @@ public: const Path& path, bool is_polyphonicc, const MetadataMap& initial_data); + + virtual void create_port_with_data(const Path& path, + const string& data_type, + bool direction, + const MetadataMap& data); virtual void set_metadata_map(const Path& subject, const MetadataMap& data); virtual void set_preset(const Path& patch_path, const PresetModel* pm); |