Commit 13e689fd authored by Filip Demski 's avatar Filip Demski
Browse files

SedsToIvTranslator: Build fix

parent b52ea899
Pipeline #5773 passed with stage
in 12 minutes
......@@ -70,20 +70,20 @@ void SyncInterfaceCommandTranslator::translateArguments(
switch (argument.mode()) {
case seds::model::CommandArgumentMode::In: {
const auto ivParameter = createIvInterfaceParameter(
argument.nameStr(), argument.type().nameStr(), ivm::InterfaceParameter::Direction::IN);
argument.nameStr(), argument.type().nameStr(), shared::InterfaceParameter::Direction::IN);
ivInterface->addParam(ivParameter);
} break;
case seds::model::CommandArgumentMode::Out: {
const auto ivParameter = createIvInterfaceParameter(
argument.nameStr(), argument.type().nameStr(), ivm::InterfaceParameter::Direction::OUT);
argument.nameStr(), argument.type().nameStr(), shared::InterfaceParameter::Direction::OUT);
ivInterface->addParam(ivParameter);
} break;
case seds::model::CommandArgumentMode::InOut: {
const auto ivParameterIn = createIvInterfaceParameter(QString("%1_In").arg(argument.nameStr()),
argument.type().nameStr(), ivm::InterfaceParameter::Direction::IN);
argument.type().nameStr(), shared::InterfaceParameter::Direction::IN);
ivInterface->addParam(ivParameterIn);
const auto ivParameterOut = createIvInterfaceParameter(QString("%2_Out").arg(argument.nameStr()),
argument.type().nameStr(), ivm::InterfaceParameter::Direction::OUT);
argument.type().nameStr(), shared::InterfaceParameter::Direction::OUT);
ivInterface->addParam(ivParameterOut);
} break;
case seds::model::CommandArgumentMode::Notify:
......@@ -93,11 +93,11 @@ void SyncInterfaceCommandTranslator::translateArguments(
}
}
ivm::InterfaceParameter SyncInterfaceCommandTranslator::createIvInterfaceParameter(
const QString &name, const QString &typeName, ivm::InterfaceParameter::Direction direction)
shared::InterfaceParameter SyncInterfaceCommandTranslator::createIvInterfaceParameter(
const QString &name, const QString &typeName, shared::InterfaceParameter::Direction direction)
{
return ivm::InterfaceParameter(
name, ivm::BasicParameter::Type::Other, typeName, m_interfaceParameterEncoding, direction);
return shared::InterfaceParameter(
name, shared::BasicParameter::Type::Other, typeName, m_interfaceParameterEncoding, direction);
}
} // namespace conversion::iv::translator
......@@ -21,7 +21,7 @@
#include "specialized/interfacecommandtranslator.h"
#include <ivcore/parameter.h>
#include <shared/parameter.h>
namespace seds::model {
class CommandArgument;
......@@ -92,7 +92,7 @@ private:
* @return Interface view interface parameter
*/
auto createIvInterfaceParameter(const QString &name, const QString &typeName,
ivm::InterfaceParameter::Direction direction) -> ivm::InterfaceParameter;
shared::InterfaceParameter::Direction direction) -> shared::InterfaceParameter;
};
} // namespace conversion::iv::translator
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment