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( ...@@ -70,20 +70,20 @@ void SyncInterfaceCommandTranslator::translateArguments(
switch (argument.mode()) { switch (argument.mode()) {
case seds::model::CommandArgumentMode::In: { case seds::model::CommandArgumentMode::In: {
const auto ivParameter = createIvInterfaceParameter( 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); ivInterface->addParam(ivParameter);
} break; } break;
case seds::model::CommandArgumentMode::Out: { case seds::model::CommandArgumentMode::Out: {
const auto ivParameter = createIvInterfaceParameter( 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); ivInterface->addParam(ivParameter);
} break; } break;
case seds::model::CommandArgumentMode::InOut: { case seds::model::CommandArgumentMode::InOut: {
const auto ivParameterIn = createIvInterfaceParameter(QString("%1_In").arg(argument.nameStr()), 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); ivInterface->addParam(ivParameterIn);
const auto ivParameterOut = createIvInterfaceParameter(QString("%2_Out").arg(argument.nameStr()), 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); ivInterface->addParam(ivParameterOut);
} break; } break;
case seds::model::CommandArgumentMode::Notify: case seds::model::CommandArgumentMode::Notify:
...@@ -93,11 +93,11 @@ void SyncInterfaceCommandTranslator::translateArguments( ...@@ -93,11 +93,11 @@ void SyncInterfaceCommandTranslator::translateArguments(
} }
} }
ivm::InterfaceParameter SyncInterfaceCommandTranslator::createIvInterfaceParameter( shared::InterfaceParameter SyncInterfaceCommandTranslator::createIvInterfaceParameter(
const QString &name, const QString &typeName, ivm::InterfaceParameter::Direction direction) const QString &name, const QString &typeName, shared::InterfaceParameter::Direction direction)
{ {
return ivm::InterfaceParameter( return shared::InterfaceParameter(
name, ivm::BasicParameter::Type::Other, typeName, m_interfaceParameterEncoding, direction); name, shared::BasicParameter::Type::Other, typeName, m_interfaceParameterEncoding, direction);
} }
} // namespace conversion::iv::translator } // namespace conversion::iv::translator
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "specialized/interfacecommandtranslator.h" #include "specialized/interfacecommandtranslator.h"
#include <ivcore/parameter.h> #include <shared/parameter.h>
namespace seds::model { namespace seds::model {
class CommandArgument; class CommandArgument;
...@@ -92,7 +92,7 @@ private: ...@@ -92,7 +92,7 @@ private:
* @return Interface view interface parameter * @return Interface view interface parameter
*/ */
auto createIvInterfaceParameter(const QString &name, const QString &typeName, auto createIvInterfaceParameter(const QString &name, const QString &typeName,
ivm::InterfaceParameter::Direction direction) -> ivm::InterfaceParameter; shared::InterfaceParameter::Direction direction) -> shared::InterfaceParameter;
}; };
} // namespace conversion::iv::translator } // namespace conversion::iv::translator
Supports Markdown
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