Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update OMSProxy addConnection #9006

Merged
merged 2 commits into from
May 23, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions OMEdit/OMEditLIB/OMS/OMSProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,13 +350,13 @@ bool OMSProxy::addBus(QString cref)
* \param crefB
* \return
*/
bool OMSProxy::addConnection(QString crefA, QString crefB)
bool OMSProxy::addConnection(QString crefA, QString crefB, bool suppressUnitConversion)
{
QString command = "oms_addConnection";
QStringList args;
args << "\"" + crefA + "\"" << "\"" + crefB + "\"";
args << "\"" + crefA + "\"" << "\"" + crefB + "\"" << (suppressUnitConversion ? "true" : "false");
LOG_COMMAND(command, args);
oms_status_enu_t status = oms_addConnection(crefA.toUtf8().constData(), crefB.toUtf8().constData());
oms_status_enu_t status = oms_addConnection(crefA.toUtf8().constData(), crefB.toUtf8().constData(), suppressUnitConversion);
logResponse(command, status, &commandTime);
return statusToBool(status);
}
Expand Down
2 changes: 1 addition & 1 deletion OMEdit/OMEditLIB/OMS/OMSProxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class OMSProxy : public QObject
void emitLogGUIMessage(MessageItem messageItem) {emit logGUIMessage(messageItem);}

bool addBus(QString cref);
bool addConnection(QString crefA, QString crefB);
bool addConnection(QString crefA, QString crefB, bool suppressUnitConversion = false);
bool addConnector(QString cref, oms_causality_enu_t causality, oms_signal_type_enu_t type);
bool addConnectorToBus(QString busCref, QString connectorCref);
bool addConnectorToTLMBus(QString busCref, QString connectorCref, QString type);
Expand Down