COPASI API  4.16.103
Public Member Functions | Private Attributes | List of all members
CMiaseModel Class Reference

#include <CMiaseModel.h>

Inheritance diagram for CMiaseModel:
Inheritance graph
[legend]
Collaboration diagram for CMiaseModel:
Collaboration graph
[legend]

Public Member Functions

void addChange (CMiaseChange *chnage)
 
 CMiaseModel ()
 
CMiaseChangegetChange (int num)
 
CMiaseChangegetLastChange ()
 
int getNumOfChanges ()
 
std::string getSource ()
 
std::string getType ()
 
void setSource (std::string source)
 
void setType (std::string type)
 
 ~CMiaseModel ()
 
- Public Member Functions inherited from CMiaseBaseEnhanced
 CMiaseBaseEnhanced ()
 
std::string getId ()
 
std::string getName ()
 
void setId (std::string id)
 
void setName (std::string name)
 
 ~CMiaseBaseEnhanced ()
 
- Public Member Functions inherited from CMiaseBase
void addAnnotation (CMiaseAnnotation *ann)
 
void addNotes (CMiaseNotes *notes)
 
 CMiaseBase ()
 
CMiaseAnnotationgetAnnotation ()
 
std::string getMetaId ()
 
CMiaseNotesgetNotes ()
 
void setAnyNote (std::string anyAnnotation)
 
void setMetaId (std::string metaId)
 
void setXmlNs (std::string xmlNs)
 
 ~CMiaseBase ()
 

Private Attributes

std::vector< CMiaseChange * > mListOfChanges
 
std::string mSource
 
std::string mType
 

Detailed Description

Definition at line 83 of file CMiaseModel.h.

Constructor & Destructor Documentation

CMiaseModel::CMiaseModel ( )

Definition at line 84 of file CMiaseModel.cpp.

85 {}
CMiaseModel::~CMiaseModel ( )

Definition at line 87 of file CMiaseModel.cpp.

88 {
89  //TODO:
90  //delete content of following vector: mListOfChanges
91 }

Member Function Documentation

void CMiaseModel::addChange ( CMiaseChange chnage)

Definition at line 113 of file CMiaseModel.cpp.

References mListOfChanges.

Referenced by CMiaseParser::newChange().

114 {
115  mListOfChanges.push_back(change);
116 }
std::vector< CMiaseChange * > mListOfChanges
Definition: CMiaseModel.h:109
CMiaseChange * CMiaseModel::getChange ( int  num)

Definition at line 118 of file CMiaseModel.cpp.

References mListOfChanges.

Referenced by CMiaseParser::testDataStructure().

119 {
120  return mListOfChanges[ num ];
121 }
std::vector< CMiaseChange * > mListOfChanges
Definition: CMiaseModel.h:109
CMiaseChange * CMiaseModel::getLastChange ( )

Definition at line 123 of file CMiaseModel.cpp.

References mListOfChanges.

Referenced by CMiaseParser::getLastObj(), CMiaseParser::newAnnotation(), CMiaseParser::newChange(), and CMiaseParser::newNotes().

124 {
125  return mListOfChanges[ mListOfChanges.size() - 1];
126 }
std::vector< CMiaseChange * > mListOfChanges
Definition: CMiaseModel.h:109
int CMiaseModel::getNumOfChanges ( )

Definition at line 128 of file CMiaseModel.cpp.

References mListOfChanges.

Referenced by CMiaseParser::testDataStructure().

129 {
130  return mListOfChanges.size();
131 }
std::vector< CMiaseChange * > mListOfChanges
Definition: CMiaseModel.h:109
std::string CMiaseModel::getSource ( )

Definition at line 98 of file CMiaseModel.cpp.

References mSource.

Referenced by CMiaseParser::testDataStructure().

99 {
100  return mSource;
101 }
std::string mSource
Definition: CMiaseModel.h:107
std::string CMiaseModel::getType ( )

Definition at line 93 of file CMiaseModel.cpp.

References mType.

Referenced by CMiaseParser::testDataStructure().

94 {
95  return mType;
96 }
std::string mType
Definition: CMiaseModel.h:106
void CMiaseModel::setSource ( std::string  source)

Definition at line 108 of file CMiaseModel.cpp.

References mSource.

Referenced by CMiaseParser::newModel().

109 {
110  mSource = source;
111 }
std::string mSource
Definition: CMiaseModel.h:107
void CMiaseModel::setType ( std::string  type)

Definition at line 103 of file CMiaseModel.cpp.

References mType.

Referenced by CMiaseParser::newModel().

104 {
105  mType = type;
106 }
std::string mType
Definition: CMiaseModel.h:106

Member Data Documentation

std::vector< CMiaseChange* > CMiaseModel::mListOfChanges
private

Definition at line 109 of file CMiaseModel.h.

Referenced by addChange(), getChange(), getLastChange(), and getNumOfChanges().

std::string CMiaseModel::mSource
private

Definition at line 107 of file CMiaseModel.h.

Referenced by getSource(), and setSource().

std::string CMiaseModel::mType
private

Definition at line 106 of file CMiaseModel.h.

Referenced by getType(), and setType().


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