Mercurial > hg > svcore
diff plugin/transform/Transform.cpp @ 353:1c6816220185
* more handy functions
author | Chris Cannam |
---|---|
date | Mon, 10 Dec 2007 17:37:13 +0000 |
parents | d7c41483af8f |
children | 4bb19132da23 |
line wrap: on
line diff
--- a/plugin/transform/Transform.cpp Mon Dec 10 15:32:40 2007 +0000 +++ b/plugin/transform/Transform.cpp Mon Dec 10 17:37:13 2007 +0000 @@ -176,6 +176,25 @@ return m_id.section(':', 3); } +void +Transform::setPluginIdentifier(QString pluginIdentifier) +{ + m_id = pluginIdentifier + ':' + getOutput(); +} + +void +Transform::setOutput(QString output) +{ + m_id = getPluginIdentifier() + ':' + output; +} + +TransformId +Transform::getIdentifierForPluginOutput(QString pluginIdentifier, + QString output) +{ + return pluginIdentifier + ':' + output; +} + const Transform::ParameterMap & Transform::getParameters() const {