COPASI API  4.40.278
CCopasiXML Class Reference

#include <CCopasiXML.h>

Inheritance diagram for CCopasiXML:
[legend]

Public Member Functions

 CCopasiXML ()
 
bool freeFunctionList ()
 
bool freeGUI ()
 
bool freeLayoutList ()
 
bool freeModel ()
 
bool freePlotList ()
 
bool freeReportList ()
 
bool freeTaskList ()
 
CDataVectorN< CFunction > * getFunctionList () const
 
SCopasiXMLGUIgetGUI () const
 
CListOfLayoutsgetLayoutList () const
 
CModelgetModel () const
 
COutputDefinitionVectorgetPlotList () const
 
CReportDefinitionVectorgetReportList () const
 
CDataVectorN< CCopasiTask > * getTaskList () const
 
bool haveFunctionList () const
 
bool haveGUI () const
 
bool haveLayoutList () const
 
bool haveModel () const
 
bool havePlotList () const
 
bool haveReportList () const
 
bool haveTaskList () const
 
virtual bool load (std::istream &is, const std::string &pwd)
 
virtual bool save (std::ostream &os, const std::string &relativeTo)
 
virtual bool saveModelParameterSets (std::ostream &os, const std::string &relativeTo)
 
bool saveUnitDefinitionList ()
 
bool setDatamodel (CDataModel *pDataModel)
 
bool setFunctionList (CDataVectorN< CFunction > *pFunctionList)
 
bool setGUI (SCopasiXMLGUI *pGUI)
 
bool setLayoutList (const CListOfLayouts &reportList)
 
bool setModel (CModel *pModel)
 
bool setPlotList (COutputDefinitionVector *pPlotList)
 
bool setReportList (CReportDefinitionVector *pReportList)
 
bool setTaskList (CDataVectorN< CCopasiTask > *pTaskList)
 
 ~CCopasiXML ()
 
- Public Member Functions inherited from CCopasiXMLInterface
 CCopasiXMLInterface ()
 
bool load (const std::string &fileName, const std::string &relativeTo)
 
bool save (const std::string &fileName, const std::string &relativeTo)
 
virtual ~CCopasiXMLInterface ()
 

Private Member Functions

bool buildFunctionList ()
 
void fixBuild113 ()
 
void fixBuild171 ()
 
void fixBuild18 ()
 
void fixBuild55 ()
 
void fixBuild81 ()
 
void fixBuildBefore104 ()
 
void mergeUnitDefinitions (CUnitDefinitionDB *pUnitDefImportList)
 
void save1DAttributes (const CLGraphicalPrimitive1D &primitive, CXMLAttributeList &attributes)
 
void save2DAttributes (const CLGraphicalPrimitive2D &primitive, CXMLAttributeList &attributes)
 
bool saveAnnotation (const CAnnotation *pAnnotation)
 
template<typename HEADELEMENT >
void saveArrowHeadAttributes (const HEADELEMENT &element, CXMLAttributeList &attributes)
 
void saveBoundingBox (const CLBoundingBox &bb)
 
void saveColorDefinition (const CLColorDefinition &color)
 
void saveCurve (const CLCurve &c)
 
void saveCurveElements (const std::vector< CLRenderPoint * > &curveElements)
 
void saveDimensions (const CLDimensions &d)
 
void saveEllipseElement (const CLEllipse &ellipse)
 
bool saveFunctionList ()
 
void saveGlobalRenderInformation (const CLGlobalRenderInformation &renderInfo)
 
void saveGlobalStyle (const CLGlobalStyle &style)
 
void saveGradientAttributes (const CLGradientBase &gradient, CXMLAttributeList &attributes)
 
void saveGradientElements (const CLGradientBase &gradient)
 
void saveGradientStop (const CLGradientStop &stop)
 
void saveGroupElement (const CLGroup &group)
 
bool saveGUI ()
 
void saveImageElement (const CLImage &image)
 
bool saveLayoutList ()
 
void saveLinearGradient (const CLLinearGradient &gradient)
 
void saveLineEnding (const CLLineEnding &lineEnding)
 
void saveListOfGlobalRenderInformation (const CDataVector< CLGlobalRenderInformation > &list)
 
void saveListOfLocalRenderInformation (const CDataVector< CLLocalRenderInformation > &list)
 
void saveLocalRenderInformation (const CLLocalRenderInformation &renderInfo)
 
void saveLocalStyle (const CLLocalStyle &style)
 
bool saveModel ()
 
bool saveModelParameter (const CModelParameter *pModelParameter)
 
void saveModelParameterSets ()
 
bool savePlotList ()
 
void savePolygonElement (const CLPolygon &polygon)
 
void savePosition (const CLPoint &p, const std::string &tag="Position")
 
void saveRadialGradient (const CLRadialGradient &gradient)
 
void saveRectangleElement (const CLRectangle &rectangle)
 
void saveRenderCurveElement (const CLRenderCurve &curve)
 
void saveRenderInformationAttributes (const CLRenderInformationBase &renderInfo, CXMLAttributeList &attributes)
 
void saveRenderInformationDefinitionElements (const CLRenderInformationBase &renderInfo)
 
void saveRenderPoint (const CLRenderPoint &point)
 
void saveRenderTextElement (const CLText &text)
 
bool saveReportList ()
 
bool saveReportSection (const std::string &name, const std::vector< CRegisteredCommonName > &section)
 
bool saveSBMLReference ()
 
void saveStyleAttributes (const CLStyle &style, CXMLAttributeList &attributes)
 
void saveStyleElements (const CLStyle &style)
 
bool saveTaskList ()
 
template<typename TEXTELEMENT >
void saveTextAttributes (const TEXTELEMENT &text, CXMLAttributeList &attributes)
 
void saveTransformation2D (const CLTransformation2D &transformation)
 
void saveTransformationAttributes (const CLTransformation2D &transformation, CXMLAttributeList &attributes)
 

Private Attributes

bool mMCXML21Issued
 
CDataModelmpDataModel
 
CDataVectorN< CFunction > * mpFunctionList
 
SCopasiXMLGUImpGUI
 
CListOfLayoutsmpLayoutList
 
CModelmpModel
 
COutputDefinitionVectormpPlotList
 
CReportDefinitionVectormpReportList
 
CDataVectorN< CCopasiTask > * mpTaskList
 
std::map< std::string, std::string > mSBMLReference
 

Additional Inherited Members

- Public Types inherited from CCopasiXMLInterface
enum  EncodingType { none = 0 , standard , attribute , character }
 
- Static Public Member Functions inherited from CCopasiXMLInterface
static std::string encode (const std::string &str, const EncodingType &type=standard)
 
static std::string utf8 (const std::string &str)
 
- Protected Member Functions inherited from CCopasiXMLInterface
bool endSaveElement (const std::string &name)
 
bool saveData (const std::string &data)
 
bool saveElement (const std::string &name, CXMLAttributeList &attributeList)
 
bool saveParameter (const CCopasiParameter &parameter)
 
bool saveParameterGroup (const std::vector< CCopasiParameter * > &group)
 
bool saveXhtml (const std::string &xhtml)
 
bool startSaveElement (const std::string &name)
 
bool startSaveElement (const std::string &name, CXMLAttributeList &attributeList)
 
- Protected Attributes inherited from CCopasiXMLInterface
std::string mIndent
 
std::istream * mpIstream
 
std::ostream * mpOstream
 
std::string mPWD
 

Constructor & Destructor Documentation

◆ CCopasiXML()

CCopasiXML::CCopasiXML ( )

Constructor

CCopasiXML class. This class implements a CCopasiXMLInterface to the COPASI XML specified in http://www.copasi.org/schema/copasi.xsd

Created for COPASI by Stefan Hoops 2003 Copyright Stefan Hoops

◆ ~CCopasiXML()

CCopasiXML::~CCopasiXML ( )

Destructor

Member Function Documentation

◆ buildFunctionList()

bool CCopasiXML::buildFunctionList ( )
private

Build a list of functions.

Returns
bool success

References CRootContainer::getFunctionList(), CDataModel::getModel(), CFunctionDB::getUsedFunctions(), mpDataModel, and setFunctionList().

Referenced by save().

◆ fixBuild113()

void CCopasiXML::fixBuild113 ( )
private

The default kinetic law unit type needs to be corrected in rare cases.

References CDataVector< CType >::begin(), CReaction::ConcentrationPerTime, CDataVector< CType >::end(), CModel::getReactions(), and mpModel.

Referenced by load().

◆ fixBuild171()

void CCopasiXML::fixBuild171 ( )
private

The object names no longer may have special character and are sanitized. This invalidates common names (CNs).

References CRegisteredCommonName::sanitizeObjectNames().

Referenced by load().

◆ fixBuild18()

void CCopasiXML::fixBuild18 ( )
private

Fix files written with Version 4.0.18, which used units Mol, etc., instead of mol, . . .

References CModel::getQuantityUnit(), mpModel, CCore::ParticleNumbers, and CModel::setQuantityUnit().

Referenced by load().

◆ fixBuild55()

void CCopasiXML::fixBuild55 ( )
private

Fix files written with Version 4.10.55, which wrote the square root of user defined weights for the parameter fitting task

References C_INVALID_INDEX, CFitTask::fixBuild55(), CDataVectorN< CType >::getIndex(), and mpTaskList.

Referenced by load().

◆ fixBuild81()

void CCopasiXML::fixBuild81 ( )
private

Fix files written with Version 4.12.81 and earlier, which wrote the exp(mean) and exp(std. deviation) for normal random distributions in the scan task.

References C_INVALID_INDEX, CScanTask::fixBuild81(), CDataVectorN< CType >::getIndex(), and mpTaskList.

Referenced by load().

◆ fixBuildBefore104()

void CCopasiXML::fixBuildBefore104 ( )
private

After Build 104, at least, we shouldn't see any "m" in place of "min" for timeUnit.

References CModel::getTimeUnit(), mpModel, and CModel::setTimeUnit().

Referenced by load().

◆ freeFunctionList()

bool CCopasiXML::freeFunctionList ( )

Free the function list.

Returns
bool success

References mpFunctionList, and pdelete.

Referenced by save().

◆ freeGUI()

bool CCopasiXML::freeGUI ( )

Free the GUI.

Returns
bool success

References mpGUI, and pdelete.

Referenced by CDataModel::loadModel().

◆ freeLayoutList()

bool CCopasiXML::freeLayoutList ( )

Free the layout list.

Returns
bool success

References mpLayoutList, and pdelete.

Referenced by CDataModel::loadModel().

◆ freeModel()

bool CCopasiXML::freeModel ( )

Free the model.

Returns
bool success

References mpModel, and pdelete.

Referenced by CDataModel::loadModel().

◆ freePlotList()

bool CCopasiXML::freePlotList ( )

Free the plot list.

Returns
bool success

References mpPlotList, and pdelete.

Referenced by CDataModel::loadModel().

◆ freeReportList()

bool CCopasiXML::freeReportList ( )

Free the report list.

Returns
bool success

References mpReportList, and pdelete.

Referenced by CDataModel::loadModel().

◆ freeTaskList()

bool CCopasiXML::freeTaskList ( )

Free the task list.

Returns
bool success

References mpTaskList, and pdelete.

Referenced by CDataModel::loadModel().

◆ getFunctionList()

CDataVectorN< CFunction > * CCopasiXML::getFunctionList ( ) const

Retrieve the function list.

Returns
CDataVectorN< CFunction > * pFunctionList

References mpFunctionList.

◆ getGUI()

SCopasiXMLGUI * CCopasiXML::getGUI ( ) const

Retrieve the SCopasiXMLGUI.

Returns
SCopasiXMLGUI * pGUI

References mpGUI.

◆ getLayoutList()

CListOfLayouts * CCopasiXML::getLayoutList ( ) const

Retrieve the layout list.

Returns
CListOfLayouts * layoutList

References mpLayoutList.

Referenced by CDataModel::loadModel().

◆ getModel()

CModel * CCopasiXML::getModel ( ) const

Retreive the model.

Returns
CModel * pModel

References mpModel.

Referenced by CDataModel::loadModel().

◆ getPlotList()

COutputDefinitionVector * CCopasiXML::getPlotList ( ) const

Retrieve the plot list.

Returns
COutputDefinitionVector * plotList

References mpPlotList.

Referenced by CDataModel::loadModel().

◆ getReportList()

CReportDefinitionVector * CCopasiXML::getReportList ( ) const

Retrieve the report list.

Returns
CReportDefinitionVector * reportList

References mpReportList.

Referenced by CDataModel::loadModel().

◆ getTaskList()

CDataVectorN< CCopasiTask > * CCopasiXML::getTaskList ( ) const

Retrieve the task list.

Returns
CDataVectorN< CCopasiTask > * taskList

References mpTaskList.

Referenced by CDataModel::loadModel().

◆ haveFunctionList()

bool CCopasiXML::haveFunctionList ( ) const

Retrieve whether the XML contains a function list.

Returns
bool haveFunctionList

References mpFunctionList.

Referenced by save(), and saveFunctionList().

◆ haveGUI()

bool CCopasiXML::haveGUI ( ) const

Retrieve whether the XML contains a GUI.

Returns
bool have GUI

References mpGUI.

Referenced by saveGUI().

◆ haveLayoutList()

bool CCopasiXML::haveLayoutList ( ) const

Retrieve whether the XML contains a layout list.

Returns
bool haveLayoutList

References mpLayoutList.

Referenced by saveLayoutList().

◆ haveModel()

bool CCopasiXML::haveModel ( ) const

Retreive whether the XML contains a model.

Returns
bool have Model

References mpModel.

Referenced by save(), saveModel(), and saveModelParameterSets().

◆ havePlotList()

bool CCopasiXML::havePlotList ( ) const

Retrieve whether the XML contains a plot list.

Returns
bool havePlotList

References mpPlotList.

Referenced by savePlotList().

◆ haveReportList()

bool CCopasiXML::haveReportList ( ) const

Retrieve whether the XML contains a report list.

Returns
bool haveReportList

References mpReportList.

Referenced by saveReportList().

◆ haveTaskList()

bool CCopasiXML::haveTaskList ( ) const

Retrieve whether the XML contains a task list.

Returns
bool haveTaskList

References mpTaskList.

Referenced by saveTaskList().

◆ load()

◆ mergeUnitDefinitions()

◆ save()

◆ save1DAttributes()

◆ save2DAttributes()

◆ saveAnnotation()

◆ saveArrowHeadAttributes()

template<typename HEADELEMENT >
void CCopasiXML::saveArrowHeadAttributes ( const HEADELEMENT &  element,
CXMLAttributeList attributes 
)
private

Saves the startHead and endHead attribute as found in group and curves. We write it as a template so that it can be used on curves and group elements.

References CXMLAttributeList::add().

◆ saveBoundingBox()

◆ saveColorDefinition()

void CCopasiXML::saveColorDefinition ( const CLColorDefinition color)
private

◆ saveCurve()

◆ saveCurveElements()

void CCopasiXML::saveCurveElements ( const std::vector< CLRenderPoint * > &  curveElements)
private

saves a vector of curve elements. This can be called from the polygon as well as the curve.

References CCopasiXMLInterface::endSaveElement(), saveRenderPoint(), and CCopasiXMLInterface::startSaveElement().

Referenced by savePolygonElement(), and saveRenderCurveElement().

◆ saveDimensions()

◆ saveEllipseElement()

◆ saveFunctionList()

◆ saveGlobalRenderInformation()

◆ saveGlobalStyle()

void CCopasiXML::saveGlobalStyle ( const CLGlobalStyle style)
private

◆ saveGradientAttributes()

void CCopasiXML::saveGradientAttributes ( const CLGradientBase gradient,
CXMLAttributeList attributes 
)
private

◆ saveGradientElements()

void CCopasiXML::saveGradientElements ( const CLGradientBase gradient)
private

Saves the elements that are common to linear and radial gradients.

References CLGradientBase::getGradientStop(), CLGradientBase::getNumGradientStops(), and saveGradientStop().

Referenced by saveLinearGradient(), and saveRadialGradient().

◆ saveGradientStop()

void CCopasiXML::saveGradientStop ( const CLGradientStop stop)
private

◆ saveGroupElement()

◆ saveGUI()

◆ saveImageElement()

◆ saveLayoutList()

◆ saveLinearGradient()

◆ saveLineEnding()

◆ saveListOfGlobalRenderInformation()

void CCopasiXML::saveListOfGlobalRenderInformation ( const CDataVector< CLGlobalRenderInformation > &  list)
private

◆ saveListOfLocalRenderInformation()

void CCopasiXML::saveListOfLocalRenderInformation ( const CDataVector< CLLocalRenderInformation > &  list)
private

◆ saveLocalRenderInformation()

◆ saveLocalStyle()

◆ saveModel()

bool CCopasiXML::saveModel ( )
private

Save the model.

Returns
bool success

References CXMLAttributeList::add(), CVectorCore< CType >::array(), CDataVector< CType >::begin(), C_FLOAT64, CDataVector< CType >::end(), CCopasiXMLInterface::endSaveElement(), CXMLAttributeList::erase(), CModelEntity::FIXED, CModel::getAreaUnitName(), CEvent::getAssignments(), CModel::getAvogadro(), CReaction::getChemEq(), CDataObject::getCN(), CMetab::getCompartment(), CModel::getCompartments(), CEvent::getDelayAssignment(), CEvent::getDelayExpression(), CCompartment::getDimensionality(), CStateTemplate::getEntities(), CModel::getEvents(), CModelEntity::getExpression(), CEvent::getFireAtInitialTime(), CReaction::getFunction(), CReaction::getFunctionParameters(), CModelEntity::getInitialExpression(), CDataObject::getKey(), CFunction::getKey(), CEvent::getKey(), CModel::getKey(), CReaction::getKey(), CModelEntity::getKey(), CCopasiParameterGroup::getKey(), CReaction::getKineticLawUnitType(), CModel::getLengthUnitName(), CModel::getMetabolites(), CModel::getModelType(), CModel::getModelValues(), CChemEq::getModifiers(), CCopasiParameterGroup::getName(), CModelEntity::getNoiseExpression(), CReaction::getNoiseExpression(), CDataObject::getObjectDataModel(), CDataObject::getObjectName(), CReaction::getParameterObjects(), CReaction::getParameters(), CEvent::getPersistentTrigger(), CEvent::getPriorityExpression(), CChemEq::getProducts(), CModel::getQuantityUnitName(), CModel::getReactions(), CEvent::getSBMLId(), CModelEntity::getSBMLId(), CReaction::getSBMLId(), CReaction::getScalingCompartment(), CModel::getStateTemplate(), CModelEntity::getStatus(), CChemEq::getSubstrates(), CModel::getTimeUnitName(), CEvent::getTriggerExpression(), CRootContainer::getUndefinedFunction(), CModelEntity::getUnitExpression(), CCopasiParameterGroup::getValue(), CFunction::getVariables(), CModel::getVolumeUnitName(), CModelEntity::hasNoise(), CReaction::hasNoise(), haveModel(), CReaction::isFast(), CReaction::isReversible(), CReaction::KineticLawUnitTypeName, CCopasiXMLInterface::mIndent, CModel::ModelTypeNames, mpModel, CCopasiXMLInterface::mpOstream, mSBMLReference, CModelEntity::REACTIONS, saveAnnotation(), CCopasiXMLInterface::saveData(), CCopasiXMLInterface::saveElement(), saveModelParameterSets(), CXMLAttributeList::setValue(), CDataVector< CType >::size(), CFunctionParameters::size(), CStateTemplate::size(), CCopasiParameterGroup::size(), CXMLAttributeList::skip(), CCopasiXMLInterface::startSaveElement(), and CModelEntity::XMLStatus.

Referenced by save().

◆ saveModelParameter()

◆ saveModelParameterSets() [1/2]

◆ saveModelParameterSets() [2/2]

◆ savePlotList()

◆ savePolygonElement()

void CCopasiXML::savePolygonElement ( const CLPolygon polygon)
private

◆ savePosition()

void CCopasiXML::savePosition ( const CLPoint p,
const std::string &  tag = "Position" 
)
private

◆ saveRadialGradient()

◆ saveRectangleElement()

◆ saveRenderCurveElement()

void CCopasiXML::saveRenderCurveElement ( const CLRenderCurve curve)
private

◆ saveRenderInformationAttributes()

void CCopasiXML::saveRenderInformationAttributes ( const CLRenderInformationBase renderInfo,
CXMLAttributeList attributes 
)
private

◆ saveRenderInformationDefinitionElements()

◆ saveRenderPoint()

◆ saveRenderTextElement()

◆ saveReportList()

◆ saveReportSection()

bool CCopasiXML::saveReportSection ( const std::string &  name,
const std::vector< CRegisteredCommonName > &  section 
)
private

Save a Report Section such as Header, Body or Footer.

Parameters
conststd::string & name
conststd::vector <CCommonName> & section
Returns
bool success

References CXMLAttributeList::add(), CCopasiXMLInterface::endSaveElement(), CCopasiXMLInterface::saveElement(), CCopasiXMLInterface::saveXhtml(), CXMLAttributeList::set(), and CCopasiXMLInterface::startSaveElement().

Referenced by saveReportList().

◆ saveSBMLReference()

◆ saveStyleAttributes()

void CCopasiXML::saveStyleAttributes ( const CLStyle style,
CXMLAttributeList attributes 
)
private

◆ saveStyleElements()

void CCopasiXML::saveStyleElements ( const CLStyle style)
private

Saves the elements common to both style types.

References CLStyle::getGroup(), and saveGroupElement().

Referenced by saveGlobalStyle(), and saveLocalStyle().

◆ saveTaskList()

◆ saveTextAttributes()

template<typename TEXTELEMENT >
void CCopasiXML::saveTextAttributes ( const TEXTELEMENT &  text,
CXMLAttributeList attributes 
)
private

Saves the attributes for a text element. We make this a template so that we can use it for a group as well as a text element.

References CXMLAttributeList::add(), CLText::ANCHOR_BOTTOM, CLText::ANCHOR_END, CLText::ANCHOR_MIDDLE, CLText::ANCHOR_START, CLText::ANCHOR_TOP, CLText::STYLE_ITALIC, and CLText::WEIGHT_BOLD.

◆ saveTransformation2D()

void CCopasiXML::saveTransformation2D ( const CLTransformation2D transformation)
private

Saves a class that is subclasses from Transformation2D. This covers images, curves, rectangles, ellipses, polygons, text elements and groups.

References saveEllipseElement(), saveGroupElement(), saveImageElement(), savePolygonElement(), saveRectangleElement(), saveRenderCurveElement(), and saveRenderTextElement().

Referenced by saveGroupElement().

◆ saveTransformationAttributes()

void CCopasiXML::saveTransformationAttributes ( const CLTransformation2D transformation,
CXMLAttributeList attributes 
)
private

◆ saveUnitDefinitionList()

◆ setDatamodel()

bool CCopasiXML::setDatamodel ( CDataModel pDataModel)

Set the datamodel.

Parameters
CDataModel*pDataModel
Returns
bool success

References mpDataModel.

Referenced by CDataModel::loadModel(), CDataModel::saveModel(), and CDataModel::saveModelToString().

◆ setFunctionList()

bool CCopasiXML::setFunctionList ( CDataVectorN< CFunction > *  pFunctionList)

Set the function list.

Parameters
CopasiVectorN<CFunction > * pFunctionList
Returns
bool success

References mpFunctionList.

Referenced by buildFunctionList(), CFunctionDB::load(), CDataModel::loadModel(), and CFunctionDB::save().

◆ setGUI()

bool CCopasiXML::setGUI ( SCopasiXMLGUI pGUI)

Set the GUI.

Parameters
SCopasiXMLGUI*pGUI
Returns
bool success

References mpGUI.

Referenced by CDataModel::loadModel(), CDataModel::saveModel(), and CDataModel::saveModelToString().

◆ setLayoutList()

bool CCopasiXML::setLayoutList ( const CListOfLayouts reportList)

Set the layout list.

Parameters
constCListOfLayouts & reportList
Returns
bool success

References mpLayoutList.

Referenced by CDataModel::saveModel(), and CDataModel::saveModelToString().

◆ setModel()

bool CCopasiXML::setModel ( CModel pModel)

Set the model.

Parameters
CModel* pModel
Returns
bool success

References mpModel.

Referenced by CDataModel::saveModel(), CDataModel::saveModelParameterSets(), and CDataModel::saveModelToString().

◆ setPlotList()

bool CCopasiXML::setPlotList ( COutputDefinitionVector pPlotList)

Set the plot list.

Parameters
COutputDefinitionVector* pPlotList
Returns
bool success

References mpPlotList.

Referenced by CDataModel::saveModel(), and CDataModel::saveModelToString().

◆ setReportList()

bool CCopasiXML::setReportList ( CReportDefinitionVector pReportList)

Set the report list.

Parameters
CReportDefinitionVector*pReportList
Returns
bool success

References mpReportList.

Referenced by CDataModel::saveModel(), and CDataModel::saveModelToString().

◆ setTaskList()

bool CCopasiXML::setTaskList ( CDataVectorN< CCopasiTask > *  pTaskList)

Set the task list.

Parameters
CDataVectorN<CCopasiTask > *pTaskList
Returns
bool success

References mpTaskList.

Referenced by CDataModel::saveModel(), and CDataModel::saveModelToString().

Member Data Documentation

◆ mMCXML21Issued

bool CCopasiXML::mMCXML21Issued
private

Remember if we already issued MCXML21

Referenced by saveLayoutList().

◆ mpDataModel

CDataModel* CCopasiXML::mpDataModel
private

Pointer to the datamodel

Referenced by buildFunctionList(), load(), saveSBMLReference(), and setDatamodel().

◆ mpFunctionList

CDataVectorN< CFunction >* CCopasiXML::mpFunctionList
private

Pointer to a vector of functions which has been loaded or is to be saved. The ownership is handed to the user.

Referenced by freeFunctionList(), getFunctionList(), haveFunctionList(), load(), saveFunctionList(), and setFunctionList().

◆ mpGUI

SCopasiXMLGUI* CCopasiXML::mpGUI
private

Pointer to a GUI related information, which has been loaded or is to be saved. The ownership is handed to the user.

Referenced by freeGUI(), getGUI(), haveGUI(), load(), saveGUI(), and setGUI().

◆ mpLayoutList

CListOfLayouts* CCopasiXML::mpLayoutList
private

Pointer to a vector of plots which has been loaded or is to be saved. The ownership is handed to the user.

Referenced by freeLayoutList(), getLayoutList(), haveLayoutList(), load(), saveLayoutList(), and setLayoutList().

◆ mpModel

CModel* CCopasiXML::mpModel
private

Pointer to a model which has been loaded or is to be saved. The ownership is handed to the user.

Referenced by fixBuild113(), fixBuild18(), fixBuildBefore104(), freeModel(), getModel(), haveModel(), load(), mergeUnitDefinitions(), saveModel(), saveModelParameterSets(), saveUnitDefinitionList(), and setModel().

◆ mpPlotList

COutputDefinitionVector* CCopasiXML::mpPlotList
private

Pointer to a vector of plots which has been loaded or is to be saved. The ownership is handed to the user.

Referenced by freePlotList(), getPlotList(), havePlotList(), load(), savePlotList(), and setPlotList().

◆ mpReportList

CReportDefinitionVector* CCopasiXML::mpReportList
private

Pointer to a vector of reports which has been loaded or is to be saved. The ownership is handed to the user.

Referenced by freeReportList(), getReportList(), haveReportList(), load(), saveReportList(), and setReportList().

◆ mpTaskList

CDataVectorN< CCopasiTask >* CCopasiXML::mpTaskList
private

Pointer to a vector of tasks which has been loaded or is to be saved. The ownership is handed to the user.

Referenced by fixBuild55(), fixBuild81(), freeTaskList(), getTaskList(), haveTaskList(), load(), saveTaskList(), and setTaskList().

◆ mSBMLReference

std::map< std::string, std::string > CCopasiXML::mSBMLReference
private

SBML Reference

Referenced by saveFunctionList(), saveModel(), and saveSBMLReference().


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