Skip to content

Commit

Permalink
Added oms3_getElement
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Nov 5, 2018
1 parent 6cee4f3 commit bdd3e2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions OMEdit/OMEditGUI/OMS/OMSProxy.cpp
Expand Up @@ -437,6 +437,12 @@ bool OMSProxy::listModel(QString ident, QString *pContents)
return statusToBool(status);
}

bool OMSProxy::oms3GetElement(QString cref, oms3_element_t** pElement)
{
oms_status_enu_t status = oms3_getElement(cref.toStdString().c_str(), pElement);
return statusToBool(status);
}

/*!
* \brief OMSProxy::getElement
* Gets the model element
Expand Down
1 change: 1 addition & 0 deletions OMEdit/OMEditGUI/OMS/OMSProxy.h
Expand Up @@ -76,6 +76,7 @@ class OMSProxy : public QObject
bool loadString(QString contents, QString* pModelName);
bool saveModel(QString ident, QString filename);
bool listModel(QString ident, QString *pContents);
bool oms3GetElement(QString cref, oms3_element_t** pElement);
bool getElement(QString cref, oms_element_t** pElement);
bool setElementGeometry(QString cref, const ssd_element_geometry_t* pGeometry);
bool getElements(QString cref, oms_element_t*** pElements);
Expand Down

0 comments on commit bdd3e2a

Please sign in to comment.