diff options
Diffstat (limited to 'src/client/ConnectionModel.hpp')
-rw-r--r-- | src/client/ConnectionModel.hpp | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/client/ConnectionModel.hpp b/src/client/ConnectionModel.hpp index bc2f56e5..9a51d309 100644 --- a/src/client/ConnectionModel.hpp +++ b/src/client/ConnectionModel.hpp @@ -19,25 +19,20 @@ #define INGEN_CLIENT_CONNECTIONMODEL_HPP #include <cassert> -#include <string> -#include <list> + #include "raul/Path.hpp" #include "raul/SharedPtr.hpp" + #include "ingen/Connection.hpp" -#include "PortModel.hpp" + +#include "client/PortModel.hpp" namespace Ingen { namespace Client { class ClientStore; -/** Class to represent a port->port connection in the engine. - * - * This can either have pointers to the connection ports' models, or just - * paths as strings. The engine passes just strings (by necessity), but - * clients can set the pointers then they don't have to worry about port - * renaming, as the connections will always return the port's path, even - * if it changes. +/** Class to represent a port->port connections in the engine. * * \ingroup IngenClient */ @@ -47,8 +42,8 @@ public: SharedPtr<PortModel> src_port() const { return _src_port; } SharedPtr<PortModel> dst_port() const { return _dst_port; } - const Raul::Path src_port_path() const { return _src_port->path(); } - const Raul::Path dst_port_path() const { return _dst_port->path(); } + const Raul::Path& src_port_path() const { return _src_port->path(); } + const Raul::Path& dst_port_path() const { return _dst_port->path(); } private: friend class ClientStore; |