COPASI API  4.40.278
CMIRIAMInfo Class Reference

#include <CModelMIRIAMInfo.h>

Inheritance diagram for CMIRIAMInfo:
[legend]

Public Member Functions

bool addDefaultCreatedDT ()
 
CCreatoraddDefaultCreator (bool force=false)
 
virtual bool applyData (const CData &data, CUndoData::CChangeSet &changes)
 
 CMIRIAMInfo ()
 
CBiologicalDescriptioncreateBiologicalDescription ()
 
CCreatorcreateCreator (const std::string &objectName)
 
CModificationcreateModification (const std::string &objectName)
 
CReferencecreateReference (const std::string &objectName)
 
virtual void createUndoData (CUndoData &undoData, const CUndoData::Type &type, const CData &oldData=CData(), const CCore::Framework &framework=CCore::Framework::ParticleNumbers) const
 
bool empty () const
 
CDataVector< CBiologicalDescription > & getBiologicalDescriptions ()
 
const CDataVector< CBiologicalDescription > & getBiologicalDescriptions () const
 
const std::string getCreatedDT () const
 
CDataVector< CCreator > & getCreators ()
 
const CDataVector< CCreator > & getCreators () const
 
virtual const std::string & getKey () const
 
CDataVector< CModification > & getModifications ()
 
const CDataVector< CModification > & getModifications () const
 
CRDFGraphgetRDFGraph ()
 
CDataVector< CReference > & getReferences ()
 
const CDataVector< CReference > & getReferences () const
 
void load (CDataContainer *pObject)
 
void loadBiologicalDescriptions ()
 
void loadCreators ()
 
void loadModifications ()
 
void loadReferences ()
 
bool removeBiologicalDescription (CBiologicalDescription *pBiologicalDescription)
 
bool removeCreator (CCreator *pCreator)
 
bool removeModification (CModification *pModified)
 
bool removeReference (CReference *pReference)
 
bool save ()
 
void setCreatedDT (const std::string &dt)
 
virtual CData toData () const
 
 ~CMIRIAMInfo ()
 
- Public Member Functions inherited from CDataContainer
virtual bool add (CDataObject *pObject, const bool &adopt=true)
 
virtual bool appendDeletedDependentData (CUndoData &undoData) const
 
 CDataContainer (const CDataContainer &src, const CDataContainer *pParent)
 
 CDataContainer (const std::string &name, const CDataContainer *pParent=NO_PARENT, const std::string &type="CN", const CFlags< Flag > &flag=CFlags< Flag >::None)
 
virtual std::string getChildObjectUnits (const CDataObject *pObject) const
 
void getDescendants (CDataObject::DataObjectSet &descendants, const bool &recursive=false) const
 
virtual size_t getIndex (const CDataObject *pObject) const
 
virtual const CObjectInterfacegetObject (const CCommonName &cn) const override
 
virtual objectMapgetObjects ()
 
virtual const objectMapgetObjects () const
 
virtual const std::string getUnits () const override
 
virtual const CDataObjectgetValueObject () const override
 
virtual CUndoObjectInterfaceinsert (const CData &data) override
 
void objectRenamed (CDataObject *pObject, const std::string &oldName)
 
virtual bool remove (CDataObject *pObject)
 
virtual ~CDataContainer ()
 
- Public Member Functions inherited from CDataObject
void addIssue (const CIssue &issue)
 
void addReference (const CDataContainer *pReference)
 
virtual void calculateValue () override
 
 CDataObject (const CDataObject &src, const CDataContainer *pParent=NULL)
 
virtual void destruct () override
 
virtual CCommonName getCN () const override
 
virtual const CDataObjectgetDataObject () const override
 
CDataContainergetObjectAncestor (const std::string &type) const
 
CDataModelgetObjectDataModel () const
 
virtual std::string getObjectDisplayName () const override
 
const CObjectInterfacegetObjectFromCN (const CCommonName &cn) const
 
const std::string & getObjectName () const
 
CDataContainergetObjectParent () const
 
const std::string & getObjectType () const
 
virtual const CObjectInterface::ObjectSetgetPrerequisites () const override
 
virtual const CValiditygetValidity () const override
 
virtual void * getValuePointer () const override
 
bool hasFlag (const Flag &flag) const
 
virtual bool isPrerequisiteForContext (const CObjectInterface *pObject, const CCore::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects) const override
 
bool prerequisitsContains (const DataObjectSet &objects) const
 
virtual void print (std::ostream *ostream) const override
 
void removeIssue (const CIssue &issue)
 
void removeReference (const CDataContainer *pReference)
 
bool setObjectName (const std::string &name)
 
virtual bool setObjectParent (const CDataContainer *pParent)
 
void validityChanged (const CValidity &changedValidity) override
 
void validityRemoved (const CValidity &changedValidity)
 
virtual ~CDataObject ()
 
- Public Member Functions inherited from CObjectInterface
 CObjectInterface ()
 
 CObjectInterface (const CObjectInterface &src)
 
virtual ~CObjectInterface ()
 
- Public Member Functions inherited from CUndoObjectInterface
 CUndoObjectInterface ()
 
 CUndoObjectInterface (const CUndoObjectInterface &src)
 
bool generateUuid ()
 
const xg::Guid & getUuid () const
 
bool setUuid (const std::string &uuid)
 
bool setUuid (const xg::Guid &uuid)
 
virtual void updateIndex (const size_t &index, const CUndoObjectInterface *pUndoObject)
 
virtual ~CUndoObjectInterface ()
 

Private Attributes

CDataVector< CBiologicalDescriptionmBiologicalDescriptions
 
CRDFTriplet mCreated
 
CRDFObject mCreatedObj
 
CDataVector< CCreatormCreators
 
CDataVector< CModificationmModifications
 
CAnnotationmpAnnotation
 
CDataContainermpObject
 
CRDFGraphmpRDFGraph
 
CDataVector< CReferencemReferences
 
CRDFTriplet mTriplet
 

Additional Inherited Members

- Public Types inherited from CDataContainer
typedef CDataObjectMap objectMap
 
- Public Types inherited from CDataObject
typedef std::set< const CDataObject * > DataObjectSet
 
enum  Flag {
  Container , Vector , Matrix , NameVector ,
  Reference , ValueBool , ValueInt , ValueInt64 ,
  ValueDbl , NonUniqueName , StaticString , ValueString ,
  Separator , DisplayName , ModelEntity , Array ,
  DataModel , Root , Gui , __SIZE
}
 
- Public Types inherited from CObjectInterface
typedef std::vector< const CDataContainer * > ContainerList
 
typedef std::set< const CObjectInterface * > ObjectSet
 
- Static Public Member Functions inherited from CDataContainer
static CDataContainerfromData (const CData &data, CUndoObjectInterface *pParent)
 
- Static Public Member Functions inherited from CDataObject
static CDataObjectfromData (const CData &data, CUndoObjectInterface *pParent)
 
static void sanitizeObjectName (std::string &name)
 
- Static Public Member Functions inherited from CObjectInterface
static const CDataObjectDataObject (const CObjectInterface *pInterface)
 
static CObjectInterfaceGetObjectFromCN (const ContainerList &listOfContainer, const CCommonName &objName)
 
- Static Public Member Functions inherited from CUndoObjectInterface
template<class CType >
static CType * fromData (const CData &, CUndoObjectInterface *)
 
- Static Public Attributes inherited from CDataContainer
static const CObjectInterface::ContainerList EmptyList
 
- Protected Member Functions inherited from CDataContainer
template<class CType >
CDataMatrixReference< CType > * addMatrixReference (const std::string &name, CType &reference, const CFlags< Flag > &flag=CFlags< Flag >::None)
 
template<class CType >
CDataObjectReference< CType > * addObjectReference (const std::string &name, CType &reference, const CFlags< Flag > &flag=CFlags< Flag >::None)
 
template<class CType >
CDataVectorReference< CType > * addVectorReference (const std::string &name, CType &reference, const CFlags< Flag > &flag=CFlags< Flag >::None)
 
 CDataContainer (const CDataContainer &src)
 
void initObjects ()
 
- Protected Member Functions inherited from CDataObject
 CDataObject ()
 
 CDataObject (const std::string &name, const CDataContainer *pParent=static_cast< CDataContainer * >((void *) 0), const std::string &type="CN", const CFlags< Flag > &flag=CFlags< Flag >::None)
 
- Protected Attributes inherited from CDataContainer
objectMap mObjects
 
- Protected Attributes inherited from CDataObject
ObjectSet mPrerequisits
 
std::set< CDataContainer * > mReferences
 
- Protected Attributes inherited from CObjectInterface
CValidity mValidity
 

Constructor & Destructor Documentation

◆ CMIRIAMInfo()

CMIRIAMInfo::CMIRIAMInfo ( )

◆ ~CMIRIAMInfo()

CMIRIAMInfo::~CMIRIAMInfo ( )

Member Function Documentation

◆ addDefaultCreatedDT()

bool CMIRIAMInfo::addDefaultCreatedDT ( )

◆ addDefaultCreator()

◆ applyData()

bool CMIRIAMInfo::applyData ( const CData data,
CUndoData::CChangeSet changes 
)
virtual

Apply the provided data to the object

Parameters
constCData & data
Returns
bool success

Reimplemented from CDataContainer.

References CDataContainer::applyData(), CData::DATE, CData::getProperty(), CData::isSetProperty(), save(), setCreatedDT(), and CDataValue::toString().

◆ createBiologicalDescription()

◆ createCreator()

◆ createModification()

◆ createReference()

◆ createUndoData()

void CMIRIAMInfo::createUndoData ( CUndoData undoData,
const CUndoData::Type type,
const CData oldData = CData(),
const CCore::Framework framework = CCore::Framework::ParticleNumbers 
) const
virtual

Create the undo data which represents the changes recording the differences between the provided oldData and the current data.

Parameters
CUndoData& undoData
constCUndoData::Type & type
constCData & oldData (default: empty data)
constCCore::Framework & framework (default: CCore::Framework::ParticleNumbers)
Returns
CUndoData undoData

Reimplemented from CDataContainer.

References CUndoData::addProperty(), CUndoData::CHANGE, CDataContainer::createUndoData(), CData::DATE, getCreatedDT(), and CData::getProperty().

◆ empty()

bool CMIRIAMInfo::empty ( ) const

◆ getBiologicalDescriptions() [1/2]

CDataVector< CBiologicalDescription > & CMIRIAMInfo::getBiologicalDescriptions ( )

◆ getBiologicalDescriptions() [2/2]

const CDataVector< CBiologicalDescription > & CMIRIAMInfo::getBiologicalDescriptions ( ) const

◆ getCreatedDT()

◆ getCreators() [1/2]

CDataVector< CCreator > & CMIRIAMInfo::getCreators ( )

◆ getCreators() [2/2]

const CDataVector< CCreator > & CMIRIAMInfo::getCreators ( ) const

References mCreators.

◆ getKey()

const std::string & CMIRIAMInfo::getKey ( ) const
virtual

◆ getModifications() [1/2]

CDataVector< CModification > & CMIRIAMInfo::getModifications ( )

◆ getModifications() [2/2]

const CDataVector< CModification > & CMIRIAMInfo::getModifications ( ) const

References mModifications.

◆ getRDFGraph()

CRDFGraph * CMIRIAMInfo::getRDFGraph ( )

References mpRDFGraph.

◆ getReferences() [1/2]

CDataVector< CReference > & CMIRIAMInfo::getReferences ( )

◆ getReferences() [2/2]

const CDataVector< CReference > & CMIRIAMInfo::getReferences ( ) const

References mReferences.

◆ load()

◆ loadBiologicalDescriptions()

◆ loadCreators()

◆ loadModifications()

◆ loadReferences()

◆ removeBiologicalDescription()

◆ removeCreator()

◆ removeModification()

◆ removeReference()

◆ save()

◆ setCreatedDT()

◆ toData()

CData CMIRIAMInfo::toData ( ) const
virtual

Retrieve the data describing the object

Returns
CData data

Reimplemented from CDataContainer.

References CData::addProperty(), CData::DATE, getCreatedDT(), and CDataContainer::toData().

Member Data Documentation

◆ mBiologicalDescriptions

◆ mCreated

CRDFTriplet CMIRIAMInfo::mCreated
private

Referenced by getCreatedDT(), load(), and setCreatedDT().

◆ mCreatedObj

CRDFObject CMIRIAMInfo::mCreatedObj
private

◆ mCreators

◆ mModifications

◆ mpAnnotation

CAnnotation* CMIRIAMInfo::mpAnnotation
private

Referenced by getKey(), load(), and save().

◆ mpObject

CDataContainer* CMIRIAMInfo::mpObject
private

Referenced by load(), and ~CMIRIAMInfo().

◆ mpRDFGraph

◆ mReferences

CDataVector<CReference> CMIRIAMInfo::mReferences
private

◆ mTriplet


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