Skip to content

Commit

Permalink
SED-ML support: determine whether we are dealing with an L1V4 or late…
Browse files Browse the repository at this point in the history
…r SED-ML file (opencor#2053).
  • Loading branch information
agarny committed Apr 4, 2019
1 parent d0eb3d7 commit f636a7e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/plugins/support/SEDMLSupport/src/sedmlfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,15 @@ void SedmlFile::forceNew()

//==============================================================================

bool SedmlFile::isL1V4OrLater() const
{
// Return whether we are L1V4 or later

return mL1V4OrLater;
}

//==============================================================================

bool SedmlFile::isValid(const QString &pFileContents, SedmlFileIssues &pIssues)
{
// Make sure that we are loaded, if the given file contents is empty (i.e.
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/support/SEDMLSupport/src/sedmlfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ class SEDMLSUPPORT_EXPORT SedmlFile : public StandardSupport::StandardFile

void forceNew();

bool isL1V4OrLater() const;

bool isValid(const QString &pFileContents, SedmlFileIssues &pIssues);
bool isValid();
bool isSupported();
Expand Down

0 comments on commit f636a7e

Please # to comment.