-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a CellML, SED-ML and COMBINE file type interface (#1371).
- Loading branch information
Showing
15 changed files
with
430 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
src/plugins/support/COMBINESupport/src/combineinterface.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/******************************************************************************* | ||
Copyright (C) The University of Auckland | ||
OpenCOR is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
OpenCOR is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*******************************************************************************/ | ||
|
||
//============================================================================== | ||
// COMBINE interface | ||
//============================================================================== | ||
|
||
#include "combineinterface.h" | ||
#include "corecliutils.h" | ||
|
||
//============================================================================== | ||
|
||
namespace OpenCOR { | ||
namespace COMBINESupport { | ||
|
||
//============================================================================== | ||
|
||
CombineInterfaceData::CombineInterfaceData(FileTypeInterface *pFileTypeInterface) : | ||
mFileTypeInterface(pFileTypeInterface) | ||
{ | ||
} | ||
|
||
//============================================================================== | ||
|
||
FileTypeInterface * CombineInterfaceData::fileTypeInterface() const | ||
{ | ||
// Return our file type interface | ||
|
||
return mFileTypeInterface; | ||
} | ||
|
||
//============================================================================== | ||
|
||
FileTypeInterface * fileTypeInterface() | ||
{ | ||
// Return our file type interface | ||
|
||
return static_cast<CombineInterfaceData *>(Core::globalInstance(CombineInterfaceDataSignature))->fileTypeInterface(); | ||
} | ||
|
||
//============================================================================== | ||
|
||
} // namespace COMBINESupport | ||
} // namespace OpenCOR | ||
|
||
//============================================================================== | ||
// End of file | ||
//============================================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/******************************************************************************* | ||
Copyright (C) The University of Auckland | ||
OpenCOR is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
OpenCOR is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*******************************************************************************/ | ||
|
||
//============================================================================== | ||
// COMBINE interface | ||
//============================================================================== | ||
|
||
#pragma once | ||
|
||
//============================================================================== | ||
|
||
#include "filetypeinterface.h" | ||
#include "combinesupportglobal.h" | ||
|
||
//============================================================================== | ||
|
||
namespace OpenCOR { | ||
namespace COMBINESupport { | ||
|
||
//============================================================================== | ||
|
||
static const auto CombineInterfaceDataSignature = QStringLiteral("OpenCOR::COMBINESupport::CombineInterfaceData"); | ||
|
||
//============================================================================== | ||
|
||
class CombineInterfaceData | ||
{ | ||
public: | ||
explicit CombineInterfaceData(FileTypeInterface *pFileTypeInterface); | ||
|
||
FileTypeInterface * fileTypeInterface() const; | ||
|
||
private: | ||
FileTypeInterface *mFileTypeInterface; | ||
}; | ||
|
||
//============================================================================== | ||
|
||
FileTypeInterface COMBINESUPPORT_EXPORT * fileTypeInterface(); | ||
|
||
//============================================================================== | ||
|
||
} // namespace COMBINESupport | ||
} // namespace OpenCOR | ||
|
||
//============================================================================== | ||
// End of file | ||
//============================================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/******************************************************************************* | ||
Copyright (C) The University of Auckland | ||
OpenCOR is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
OpenCOR is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*******************************************************************************/ | ||
|
||
//============================================================================== | ||
// CellML interface | ||
//============================================================================== | ||
|
||
#include "cellmlinterface.h" | ||
#include "corecliutils.h" | ||
|
||
//============================================================================== | ||
|
||
namespace OpenCOR { | ||
namespace CellMLSupport { | ||
|
||
//============================================================================== | ||
|
||
CellmlInterfaceData::CellmlInterfaceData(FileTypeInterface *pFileTypeInterface) : | ||
mFileTypeInterface(pFileTypeInterface) | ||
{ | ||
} | ||
|
||
//============================================================================== | ||
|
||
FileTypeInterface * CellmlInterfaceData::fileTypeInterface() const | ||
{ | ||
// Return our file type interface | ||
|
||
return mFileTypeInterface; | ||
} | ||
|
||
//============================================================================== | ||
|
||
FileTypeInterface * fileTypeInterface() | ||
{ | ||
// Return our file type interface | ||
|
||
return static_cast<CellmlInterfaceData *>(Core::globalInstance(CellmlInterfaceDataSignature))->fileTypeInterface(); | ||
} | ||
|
||
//============================================================================== | ||
|
||
} // namespace CellMLSupport | ||
} // namespace OpenCOR | ||
|
||
//============================================================================== | ||
// End of file | ||
//============================================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/******************************************************************************* | ||
Copyright (C) The University of Auckland | ||
OpenCOR is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
OpenCOR is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*******************************************************************************/ | ||
|
||
//============================================================================== | ||
// CellML interface | ||
//============================================================================== | ||
|
||
#pragma once | ||
|
||
//============================================================================== | ||
|
||
#include "filetypeinterface.h" | ||
#include "cellmlsupportglobal.h" | ||
|
||
//============================================================================== | ||
|
||
namespace OpenCOR { | ||
namespace CellMLSupport { | ||
|
||
//============================================================================== | ||
|
||
static const auto CellmlInterfaceDataSignature = QStringLiteral("OpenCOR::CellMLSupport::CellmlInterfaceData"); | ||
|
||
//============================================================================== | ||
|
||
class CellmlInterfaceData | ||
{ | ||
public: | ||
explicit CellmlInterfaceData(FileTypeInterface *pFileTypeInterface); | ||
|
||
FileTypeInterface * fileTypeInterface() const; | ||
|
||
private: | ||
FileTypeInterface *mFileTypeInterface; | ||
}; | ||
|
||
//============================================================================== | ||
|
||
FileTypeInterface CELLMLSUPPORT_EXPORT * fileTypeInterface(); | ||
|
||
//============================================================================== | ||
|
||
} // namespace CellMLSupport | ||
} // namespace OpenCOR | ||
|
||
//============================================================================== | ||
// End of file | ||
//============================================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.