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

#include <CMiaseML.h>

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

Public Member Functions

void addModel (CMiaseModel *model)
 
void addOutput (CMiaseOutput *output)
 
void addSimulation (CMiaseSimulation *simulation)
 
void addTask (CMiaseTask *task)
 
 CMiaseSed ()
 
CMiaseModelgetLastModel ()
 
CMiaseOutputgetLastOutput ()
 
CMiaseSimulationgetLastSimulation ()
 
CMiaseTaskgetLastTask ()
 
CMiaseModelgetModel (int num)
 
CMiaseModelgetModel (std::string id)
 
int getNumOfModels ()
 
int getNumOfOutputs ()
 
int getNumOfSimulations ()
 
int getNumOfTasks ()
 
CMiaseOutputgetOutput (int num)
 
CMiaseOutputgetOutput (std::string id)
 
CMiaseSimulationgetSimulation (int num)
 
CMiaseSimulationgetSimulation (std::string id)
 
CMiaseTaskgetTask (int num)
 
CMiaseTaskgetTask (std::string id)
 
 ~CMiaseSed ()
 
- 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< CMiaseModel * > mListofModels
 
std::vector< CMiaseOutput * > mListofOutputs
 
std::vector< CMiaseSimulation * > mListofSimulations
 
std::vector< CMiaseTask * > mListofTasks
 

Detailed Description

Definition at line 23 of file CMiaseML.h.

Constructor & Destructor Documentation

CMiaseSed::CMiaseSed ( )

Definition at line 17 of file CMiaseML.cpp.

17  : CMiaseBase()
18 {}
CMiaseSed::~CMiaseSed ( )

Definition at line 20 of file CMiaseML.cpp.

21 {
22  //TODO:
23  //delete content of following vectors: mListofSimulations, mListofTasks,
24  // mListofModels, mListofOutputs
25 }

Member Function Documentation

void CMiaseSed::addModel ( CMiaseModel model)

Definition at line 37 of file CMiaseML.cpp.

References mListofModels.

Referenced by CMiaseParser::newModel().

38 {
39  mListofModels.push_back(model);
40 }
std::vector< CMiaseModel * > mListofModels
Definition: CMiaseML.h:60
void CMiaseSed::addOutput ( CMiaseOutput output)

Definition at line 42 of file CMiaseML.cpp.

References mListofOutputs.

Referenced by CMiaseParser::newOutput().

43 {
44  mListofOutputs.push_back(output);
45 }
std::vector< CMiaseOutput * > mListofOutputs
Definition: CMiaseML.h:61
void CMiaseSed::addSimulation ( CMiaseSimulation simulation)

Definition at line 27 of file CMiaseML.cpp.

References mListofSimulations.

Referenced by CMiaseParser::newSimulation().

28 {
29  mListofSimulations.push_back(simulation);
30 }
std::vector< CMiaseSimulation * > mListofSimulations
Definition: CMiaseML.h:58
void CMiaseSed::addTask ( CMiaseTask task)

Definition at line 32 of file CMiaseML.cpp.

References mListofTasks.

Referenced by CMiaseParser::newTask().

33 {
34  mListofTasks.push_back(task);
35 }
std::vector< CMiaseTask * > mListofTasks
Definition: CMiaseML.h:59
CMiaseModel * CMiaseSed::getLastModel ( )

Definition at line 118 of file CMiaseML.cpp.

References mListofModels.

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

119 {
120  return mListofModels[ mListofModels.size() - 1 ];
121 }
std::vector< CMiaseModel * > mListofModels
Definition: CMiaseML.h:60
CMiaseOutput * CMiaseSed::getLastOutput ( )

Definition at line 145 of file CMiaseML.cpp.

References mListofOutputs.

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

146 {
147  return mListofOutputs[ mListofOutputs.size() - 1 ];
148 }
std::vector< CMiaseOutput * > mListofOutputs
Definition: CMiaseML.h:61
CMiaseSimulation * CMiaseSed::getLastSimulation ( )

Definition at line 64 of file CMiaseML.cpp.

References mListofSimulations.

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

65 {
66  return mListofSimulations[ mListofSimulations.size() - 1 ];
67 }
std::vector< CMiaseSimulation * > mListofSimulations
Definition: CMiaseML.h:58
CMiaseTask * CMiaseSed::getLastTask ( )

Definition at line 91 of file CMiaseML.cpp.

References mListofTasks.

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

92 {
93  return mListofTasks[ mListofTasks.size() - 1 ];
94 }
std::vector< CMiaseTask * > mListofTasks
Definition: CMiaseML.h:59
CMiaseModel * CMiaseSed::getModel ( int  num)

Definition at line 101 of file CMiaseML.cpp.

References mListofModels.

Referenced by getModel(), and CMiaseParser::testDataStructure().

102 {
103  return mListofModels[ num ];
104 }
std::vector< CMiaseModel * > mListofModels
Definition: CMiaseML.h:60
CMiaseModel * CMiaseSed::getModel ( std::string  id)

Definition at line 106 of file CMiaseML.cpp.

References CMiaseBaseEnhanced::getId(), getModel(), and getNumOfModels().

107 {
108  int i;
109  CMiaseModel* tmp;
110  for (i = 0 ; i <= getNumOfModels() ; i++)
111  {
112  tmp = getModel(i);
113  if (tmp->getId() == id)
114  return tmp;
115  }
116 }
std::string getId()
Definition: CMiaseBase.cpp:117
CMiaseModel * getModel(int num)
Definition: CMiaseML.cpp:101
int getNumOfModels()
Definition: CMiaseML.cpp:123
int CMiaseSed::getNumOfModels ( )

Definition at line 123 of file CMiaseML.cpp.

References mListofModels.

Referenced by getModel(), and CMiaseParser::testDataStructure().

124 {
125  return mListofModels.size();
126 }
std::vector< CMiaseModel * > mListofModels
Definition: CMiaseML.h:60
int CMiaseSed::getNumOfOutputs ( )

Definition at line 150 of file CMiaseML.cpp.

References mListofOutputs.

Referenced by getOutput(), and CMiaseParser::testDataStructure().

151 {
152  return mListofOutputs.size();
153 }
std::vector< CMiaseOutput * > mListofOutputs
Definition: CMiaseML.h:61
int CMiaseSed::getNumOfSimulations ( )

Definition at line 69 of file CMiaseML.cpp.

References mListofSimulations.

Referenced by getSimulation(), and CMiaseParser::testDataStructure().

70 {
71  return mListofSimulations.size();
72 }
std::vector< CMiaseSimulation * > mListofSimulations
Definition: CMiaseML.h:58
int CMiaseSed::getNumOfTasks ( )

Definition at line 96 of file CMiaseML.cpp.

References mListofTasks.

Referenced by getTask(), and CMiaseParser::testDataStructure().

97 {
98  return mListofTasks.size();
99 }
std::vector< CMiaseTask * > mListofTasks
Definition: CMiaseML.h:59
CMiaseOutput * CMiaseSed::getOutput ( int  num)

Definition at line 128 of file CMiaseML.cpp.

References mListofOutputs.

Referenced by getOutput(), and CMiaseParser::testDataStructure().

129 {
130  return mListofOutputs[ num ];
131 }
std::vector< CMiaseOutput * > mListofOutputs
Definition: CMiaseML.h:61
CMiaseOutput * CMiaseSed::getOutput ( std::string  id)

Definition at line 133 of file CMiaseML.cpp.

References CMiaseBaseEnhanced::getId(), getNumOfOutputs(), and getOutput().

134 {
135  int i;
136  CMiaseOutput* tmp;
137  for (i = 0 ; i <= getNumOfOutputs() ; i++)
138  {
139  tmp = getOutput(i);
140  if (tmp->getId() == id)
141  return tmp;
142  }
143 }
std::string getId()
Definition: CMiaseBase.cpp:117
CMiaseOutput * getOutput(int num)
Definition: CMiaseML.cpp:128
int getNumOfOutputs()
Definition: CMiaseML.cpp:150
CMiaseSimulation * CMiaseSed::getSimulation ( int  num)

Definition at line 47 of file CMiaseML.cpp.

References mListofSimulations.

Referenced by getSimulation(), and CMiaseParser::testDataStructure().

48 {
49  return mListofSimulations[ num ];
50 }
std::vector< CMiaseSimulation * > mListofSimulations
Definition: CMiaseML.h:58
CMiaseSimulation * CMiaseSed::getSimulation ( std::string  id)

Definition at line 52 of file CMiaseML.cpp.

References CMiaseBaseEnhanced::getId(), getNumOfSimulations(), and getSimulation().

53 {
54  int i;
55  CMiaseSimulation* tmp;
56  for (i = 0 ; i <= getNumOfSimulations() ; i++)
57  {
58  tmp = getSimulation(i);
59  if (tmp->getId() == id)
60  return tmp;
61  }
62 }
std::string getId()
Definition: CMiaseBase.cpp:117
CMiaseSimulation * getSimulation(int num)
Definition: CMiaseML.cpp:47
int getNumOfSimulations()
Definition: CMiaseML.cpp:69
CMiaseTask * CMiaseSed::getTask ( int  num)

Definition at line 74 of file CMiaseML.cpp.

References mListofTasks.

Referenced by getTask(), and CMiaseParser::testDataStructure().

75 {
76  return mListofTasks[ num ];
77 }
std::vector< CMiaseTask * > mListofTasks
Definition: CMiaseML.h:59
CMiaseTask * CMiaseSed::getTask ( std::string  id)

Definition at line 79 of file CMiaseML.cpp.

References CMiaseBaseEnhanced::getId(), getNumOfTasks(), and getTask().

80 {
81  int i;
82  CMiaseTask* tmp;
83  for (i = 0 ; i <= getNumOfTasks() ; i++)
84  {
85  tmp = getTask(i);
86  if (tmp->getId() == id)
87  return tmp;
88  }
89 }
std::string getId()
Definition: CMiaseBase.cpp:117
CMiaseTask * getTask(int num)
Definition: CMiaseML.cpp:74
int getNumOfTasks()
Definition: CMiaseML.cpp:96

Member Data Documentation

std::vector< CMiaseModel* > CMiaseSed::mListofModels
private

Definition at line 60 of file CMiaseML.h.

Referenced by addModel(), getLastModel(), getModel(), and getNumOfModels().

std::vector< CMiaseOutput* > CMiaseSed::mListofOutputs
private

Definition at line 61 of file CMiaseML.h.

Referenced by addOutput(), getLastOutput(), getNumOfOutputs(), and getOutput().

std::vector< CMiaseSimulation* > CMiaseSed::mListofSimulations
private

Definition at line 58 of file CMiaseML.h.

Referenced by addSimulation(), getLastSimulation(), getNumOfSimulations(), and getSimulation().

std::vector< CMiaseTask* > CMiaseSed::mListofTasks
private

Definition at line 59 of file CMiaseML.h.

Referenced by addTask(), getLastTask(), getNumOfTasks(), and getTask().


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