COPASI API  4.16.103
CODEExporterXPPAUT.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 CODEExpoterXPPAUT_H__
16 #define CODEExpoterXPPAUT_H__
17 
18 #include "CODEExporter.h"
19 
20 class CCopasiDataModel;
21 
23 {
24 protected:
25 
26 public:
27 
28  /**
29  ** Constructor for the exporter.
30  */
32 
33  virtual bool exportTitleData(const CCopasiDataModel* pDataModel, std::ostream & os);
34 
35  virtual void setReservedNames();
36 
37  virtual std::string translateTimeVariableName();
38 
39  std::string setConcentrationName(const std::string & objName);
40 
41  std::string setODEName(const std::string & objName);
42 
43  virtual std::string translateObjectName(const std::string & realName);
44 
45  std::string testName(const std::string & name);
46 
47  void exportSingleLine(const std::string & line, std::ostringstream & which);
48 
49  virtual bool exportSingleObject(std::ostringstream & which,
50  const std::string & name,
51  const std::string & expression,
52  const std::string & comments);
53 
54  virtual bool exportSingleMetabolite(const CMetab* metab, std::string & expression, std::string & comments);
55 
56  virtual bool exportSingleCompartment(const CCompartment* comp, std::string & expression, std::string & comments);
57 
58  virtual bool exportSingleModVal(const CModelValue* modval, std::string & expression, std::string & comments);
59 
60  virtual bool exportSingleModelEntity(const CModelEntity* tmp, std::string & expression, std::string & comments);
61 
62  virtual bool exportSingleParameter(const CCopasiParameter* param, std::string & expression, std::string & comments);
63 
64  virtual bool exportSingleODE(const CModelEntity* mentity, std::string & equation, std::string & comments);
65 
66  //virtual bool exportSingleFunction(const CFunction *func, std::set<std::string>& isExported);
67 
68  virtual std::string KineticFunction2ODEmember(const CReaction *reac);
69 
70  virtual std::string getDisplayFunctionString(CFunction * func);
71 
72  virtual std::string getDisplayExpressionString(CExpression * tmp);
73 
74  virtual std::string exportTitleString(const size_t tmp);
75 
76  bool exportClosingData(const CModel* copasiModel, std::ostream & os);
77 
78  std::map< std::string, unsigned C_INT32 > Frequancy;
79  std::set<std::string> NameSet;
80 };
81 #endif
virtual bool exportSingleParameter(const CCopasiParameter *param, std::string &expression, std::string &comments)
virtual std::string getDisplayFunctionString(CFunction *func)
virtual bool exportSingleMetabolite(const CMetab *metab, std::string &expression, std::string &comments)
std::set< std::string > NameSet
virtual bool exportSingleODE(const CModelEntity *mentity, std::string &equation, std::string &comments)
virtual std::string exportTitleString(const size_t tmp)
bool exportClosingData(const CModel *copasiModel, std::ostream &os)
void exportSingleLine(const std::string &line, std::ostringstream &which)
Definition: CMetab.h:178
virtual std::string translateObjectName(const std::string &realName)
virtual bool exportSingleCompartment(const CCompartment *comp, std::string &expression, std::string &comments)
std::string setConcentrationName(const std::string &objName)
std::string testName(const std::string &name)
virtual bool exportSingleModVal(const CModelValue *modval, std::string &expression, std::string &comments)
virtual std::string getDisplayExpressionString(CExpression *tmp)
virtual bool exportTitleData(const CCopasiDataModel *pDataModel, std::ostream &os)
virtual std::string translateTimeVariableName()
The class for handling a chemical kinetic function.
Definition: CFunction.h:29
virtual bool exportSingleObject(std::ostringstream &which, const std::string &name, const std::string &expression, const std::string &comments)
Definition: CModel.h:50
std::map< std::string, unsigned C_INT32 > Frequancy
virtual bool exportSingleModelEntity(const CModelEntity *tmp, std::string &expression, std::string &comments)
virtual void setReservedNames()
virtual std::string KineticFunction2ODEmember(const CReaction *reac)
std::string setODEName(const std::string &objName)