COPASI API  4.16.103
CODEExporterBM.h
Go to the documentation of this file.
1 // Copyright (C) 2010 - 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 // Copyright (C) 2008 - 2009 by Pedro Mendes, Virginia Tech Intellectual
7 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
8 // and The University of Manchester.
9 // All rights reserved.
10 
11 // Copyright (C) 2007 by Pedro Mendes, Virginia Tech Intellectual
12 // Properties, Inc. and EML Research, gGmbH.
13 // All rights reserved.
14 
15 #ifndef CODEExpoterBM_H__
16 #define CODEExpoterBM_H__
17 
18 #include "CODEExporter.h"
19 
21 {
22 protected:
23 
24 public:
25 
26  /**
27  ** Constructor for the exporter.
28  */
30 
31  virtual bool exportTitleData(const CCopasiDataModel* pDataModel, std::ostream & os);
32 
33  virtual void setReservedNames();
34 
35  virtual std::string translateTimeVariableName();
36 
37  std::string setODEName(const std::string & objName);
38 
39  std::string setConcentrationName(const std::string & objName);
40 
41  virtual std::string translateObjectName(const std::string & realName);
42 
43  std::string testName(const std::string & name);
44 
45  virtual bool exportSingleObject(std::ostringstream & which,
46  const std::string & name,
47  const std::string & expression,
48  const std::string & comments);
49 
50  virtual bool exportSingleMetabolite(const CMetab* metab, std::string & expression, std::string & comments);
51 
52  virtual bool exportSingleCompartment(const CCompartment* comp, std::string & expression, std::string & comments);
53 
54  virtual bool exportSingleModVal(const CModelValue* modval, std::string & expression, std::string & comments);
55 
56  virtual bool exportSingleModelEntity(const CModelEntity* tmp, std::string & expression, std::string & comments);
57 
58  virtual bool exportSingleParameter(const CCopasiParameter* param, std::string & expression, std::string & comments);
59 
60  virtual bool exportSingleODE(const CModelEntity* mentity, std::string & equation, std::string & comments);
61 
62  //virtual bool exportSingleFunction(const CFunction *func, std::set<std::string>& isExported);
63 
64  virtual std::string KineticFunction2ODEmember(const CReaction *reac);
65 
66  virtual std::string getDisplayFunctionString(CFunction * func);
67 
68  virtual std::string getDisplayExpressionString(CExpression * tmp);
69 
70  virtual std::string exportTitleString(const size_t tmp);
71 
72  std::map< std::string, size_t > Frequancy;
73  std::set<std::string> NameSet;
74 };
75 #endif
virtual std::string getDisplayFunctionString(CFunction *func)
std::string testName(const std::string &name)
virtual bool exportSingleODE(const CModelEntity *mentity, std::string &equation, std::string &comments)
virtual bool exportSingleModelEntity(const CModelEntity *tmp, std::string &expression, std::string &comments)
virtual std::string translateTimeVariableName()
virtual std::string exportTitleString(const size_t tmp)
virtual void setReservedNames()
Definition: CMetab.h:178
std::string setODEName(const std::string &objName)
std::map< std::string, size_t > Frequancy
virtual bool exportSingleModVal(const CModelValue *modval, std::string &expression, std::string &comments)
virtual std::string KineticFunction2ODEmember(const CReaction *reac)
virtual bool exportSingleCompartment(const CCompartment *comp, std::string &expression, std::string &comments)
virtual std::string getDisplayExpressionString(CExpression *tmp)
virtual bool exportTitleData(const CCopasiDataModel *pDataModel, std::ostream &os)
std::set< std::string > NameSet
std::string setConcentrationName(const std::string &objName)
virtual std::string translateObjectName(const std::string &realName)
The class for handling a chemical kinetic function.
Definition: CFunction.h:29
virtual bool exportSingleParameter(const CCopasiParameter *param, std::string &expression, std::string &comments)
virtual bool exportSingleObject(std::ostringstream &which, const std::string &name, const std::string &expression, const std::string &comments)
virtual bool exportSingleMetabolite(const CMetab *metab, std::string &expression, std::string &comments)