COPASI API  4.16.103
Public Member Functions | Public Attributes | List of all members
CCopasiDataModel::CData Class Reference
Collaboration diagram for CCopasiDataModel::CData:
Collaboration graph
[legend]

Public Member Functions

 CData (const bool &withGUI=false)
 
 CData (const CData &src)
 
bool isValid () const
 
CDataoperator= (const CData &rhs)
 
 ~CData ()
 

Public Attributes

bool mAutoSaveNeeded
 
bool mChanged
 
std::map< CCopasiObject
*, SBase * > 
mCopasi2SBMLMap
 
FileType mFileType
 
std::string mReferenceDir
 
std::string mSaveFileName
 
std::string mSBMLFileName
 
bool mWithGUI
 
SBMLDocument * pCurrentSBMLDocument
 
SCopasiXMLGUIpGUI
 
CListOfLayoutspListOfLayouts
 
CModelpModel
 
COutputDefinitionVectorpPlotDefinitionList
 
CReportDefinitionVectorpReportDefinitionList
 
CCopasiVectorN< CCopasiTask > * pTaskList
 

Detailed Description

Definition at line 90 of file CCopasiDataModel.h.

Constructor & Destructor Documentation

CCopasiDataModel::CData::CData ( const bool &  withGUI = false)

Definition at line 1957 of file CCopasiDataModel.cpp.

1957  :
1958  pModel(NULL),
1959  pTaskList(NULL),
1960  pReportDefinitionList(NULL),
1961  pPlotDefinitionList(NULL),
1962  pListOfLayouts(NULL),
1963  pGUI(NULL),
1964  pCurrentSBMLDocument(NULL),
1965  mWithGUI(withGUI),
1966  mSaveFileName(),
1967  mFileType(unset),
1968  mChanged(false),
1969  mAutoSaveNeeded(false),
1970  mSBMLFileName(""),
1971  mReferenceDir("")
1972 #ifdef COPASI_SEDML
1973  , pCurrentSEDMLDocument(NULL)
1974 #endif
1975 {}
CReportDefinitionVector * pReportDefinitionList
COutputDefinitionVector * pPlotDefinitionList
CListOfLayouts * pListOfLayouts
CCopasiVectorN< CCopasiTask > * pTaskList
SBMLDocument * pCurrentSBMLDocument
CCopasiDataModel::CData::CData ( const CData src)

Definition at line 1977 of file CCopasiDataModel.cpp.

1977  :
1978  pModel(src.pModel),
1979  pTaskList(src.pTaskList),
1980  pReportDefinitionList(src.pReportDefinitionList),
1981  pPlotDefinitionList(src.pPlotDefinitionList),
1982  pListOfLayouts(src.pListOfLayouts),
1983  pGUI(src.pGUI),
1984  pCurrentSBMLDocument(src.pCurrentSBMLDocument),
1985  mWithGUI(src.mWithGUI),
1986  mSaveFileName(src.mSaveFileName),
1987  mFileType(src.mFileType),
1988  mChanged(src.mChanged),
1989  mAutoSaveNeeded(src.mAutoSaveNeeded),
1990  mSBMLFileName(src.mSBMLFileName),
1991  mReferenceDir(src.mReferenceDir)
1992 #ifdef COPASI_SEDML
1993  , pCurrentSEDMLDocument(src.pCurrentSEDMLDocument)
1994 #endif
1995 {}
CReportDefinitionVector * pReportDefinitionList
COutputDefinitionVector * pPlotDefinitionList
CListOfLayouts * pListOfLayouts
CCopasiVectorN< CCopasiTask > * pTaskList
SBMLDocument * pCurrentSBMLDocument
CCopasiDataModel::CData::~CData ( )

Definition at line 1997 of file CCopasiDataModel.cpp.

1998 {}

Member Function Documentation

bool CCopasiDataModel::CData::isValid ( ) const

Definition at line 2023 of file CCopasiDataModel.cpp.

Referenced by CCopasiDataModel::getGUI(), CCopasiDataModel::getListOfLayouts(), CCopasiDataModel::getModel(), CCopasiDataModel::getPlotDefinitionList(), CCopasiDataModel::getReportDefinitionList(), and CCopasiDataModel::getTaskList().

2024 {
2025  return (pModel != NULL &&
2026  pTaskList != NULL &&
2027  pReportDefinitionList != NULL &&
2028  pPlotDefinitionList != NULL &&
2029  pListOfLayouts != NULL &&
2030  (pGUI != NULL || mWithGUI == false));
2031 }
CReportDefinitionVector * pReportDefinitionList
COutputDefinitionVector * pPlotDefinitionList
CListOfLayouts * pListOfLayouts
CCopasiVectorN< CCopasiTask > * pTaskList
CCopasiDataModel::CData & CCopasiDataModel::CData::operator= ( const CData rhs)

Definition at line 2000 of file CCopasiDataModel.cpp.

References mAutoSaveNeeded, mChanged, mCopasi2SBMLMap, mFileType, mReferenceDir, mSaveFileName, mSBMLFileName, mWithGUI, pCurrentSBMLDocument, pGUI, pListOfLayouts, pModel, pPlotDefinitionList, pReportDefinitionList, and pTaskList.

2001 {
2002  pModel = rhs.pModel;
2003  pTaskList = rhs.pTaskList;
2004  pReportDefinitionList = rhs.pReportDefinitionList;
2005  pPlotDefinitionList = rhs.pPlotDefinitionList;
2006  pListOfLayouts = rhs.pListOfLayouts;
2007  pGUI = rhs.pGUI;
2008  pCurrentSBMLDocument = rhs.pCurrentSBMLDocument;
2009  mWithGUI = rhs.mWithGUI,
2010  mSaveFileName = rhs.mSaveFileName;
2011  mFileType = rhs.mFileType;
2012  mChanged = rhs.mChanged;
2013  mAutoSaveNeeded = rhs.mAutoSaveNeeded;
2014  mSBMLFileName = rhs.mSBMLFileName;
2015  mReferenceDir = rhs.mReferenceDir;
2016  mCopasi2SBMLMap = rhs.mCopasi2SBMLMap;
2017 #ifdef COPASI_SEDML
2018  pCurrentSEDMLDocument = rhs.pCurrentSEDMLDocument;
2019 #endif
2020  return *this;
2021 }
CReportDefinitionVector * pReportDefinitionList
COutputDefinitionVector * pPlotDefinitionList
CListOfLayouts * pListOfLayouts
CCopasiVectorN< CCopasiTask > * pTaskList
SBMLDocument * pCurrentSBMLDocument
std::map< CCopasiObject *, SBase * > mCopasi2SBMLMap

Member Data Documentation

bool CCopasiDataModel::CData::mAutoSaveNeeded
bool CCopasiDataModel::CData::mChanged
std::map<CCopasiObject*, SBase*> CCopasiDataModel::CData::mCopasi2SBMLMap

This will map each COPASI object to the corresponding SBML object if the current model was created by an SBML import.

Definition at line 128 of file CCopasiDataModel.h.

Referenced by CCopasiDataModel::exportSBML(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCopasi2SBMLMap(), CCopasiDataModel::importSBML(), CCopasiDataModel::importSBMLFromString(), and operator=().

FileType CCopasiDataModel::CData::mFileType
std::string CCopasiDataModel::CData::mReferenceDir
std::string CCopasiDataModel::CData::mSaveFileName
std::string CCopasiDataModel::CData::mSBMLFileName
bool CCopasiDataModel::CData::mWithGUI
SBMLDocument* CCopasiDataModel::CData::pCurrentSBMLDocument
SCopasiXMLGUI* CCopasiDataModel::CData::pGUI
CListOfLayouts* CCopasiDataModel::CData::pListOfLayouts
CModel* CCopasiDataModel::CData::pModel
COutputDefinitionVector* CCopasiDataModel::CData::pPlotDefinitionList
CReportDefinitionVector* CCopasiDataModel::CData::pReportDefinitionList
CCopasiVectorN< CCopasiTask >* CCopasiDataModel::CData::pTaskList

The documentation for this class was generated from the following files: