COPASI API  4.16.103
CDataEntity.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layoutUI/CDataEntity.h,v $
3 // $Revision: 1.10 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/03/07 19:29:16 $
7 // End CVS Header
8 
9 // Copyright (C) 2011 - 2010 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
15 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
16 // and The University of Manchester.
17 // All rights reserved.
18 
19 // Copyright (C) 2001 - 2007 by Pedro Mendes, Virginia Tech Intellectual
20 // Properties, Inc. and EML Research, gGmbH.
21 // All rights reserved.
22 
23 #ifndef CDATAENTITY_H
24 #define CDATAENTITY_H
25 
26 #include <string>
27 #include <map>
28 
29 #include "copasi.h"
30 
32 {
33 private:
35  std::map<std::string, C_FLOAT64> mSpeciesValueMap;
36  std::map<std::string, C_FLOAT64> mOrigValueMap;
37 
38 public:
39  CDataEntity();
41  CDataEntity(const CDataEntity & src);
42 
43  void putValueForSpecies(std::string nodeKey, C_FLOAT64 value);
44  void putOrigValueForSpecies(std::string nodeKey, C_FLOAT64 value);
45 
46  C_FLOAT64 getValueForSpecies(std::string nodeKey);
47  C_FLOAT64 getOrigValueForSpecies(std::string nodeKey);
48  size_t getNumberOfElements() {return mSpeciesValueMap.size();}
49  C_FLOAT64 getTime() {return mTime;}
50  friend std::ostream & operator<<(std::ostream &os, const CDataEntity & gn);
51 };
52 #endif
std::map< std::string, C_FLOAT64 > mOrigValueMap
Definition: CDataEntity.h:36
C_FLOAT64 getValueForSpecies(std::string nodeKey)
Definition: CDataEntity.cpp:58
C_FLOAT64 getOrigValueForSpecies(std::string nodeKey)
Definition: CDataEntity.cpp:70
C_FLOAT64 getTime()
Definition: CDataEntity.h:49
std::map< std::string, C_FLOAT64 > mSpeciesValueMap
Definition: CDataEntity.h:35
void putOrigValueForSpecies(std::string nodeKey, C_FLOAT64 value)
Definition: CDataEntity.cpp:50
C_FLOAT64 mTime
Definition: CDataEntity.h:34
void putValueForSpecies(std::string nodeKey, C_FLOAT64 value)
Definition: CDataEntity.cpp:43
#define C_FLOAT64
Definition: copasi.h:92
size_t getNumberOfElements()
Definition: CDataEntity.h:48
friend std::ostream & operator<<(std::ostream &os, const CDataEntity &gn)
Definition: CDataEntity.cpp:81