COPASI API  4.16.103
CODEExporterC.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 CODEExpoterC_H__
16 #define CODEExpoterC_H__
17 
18 #include "CODEExporter.h"
19 
21 {
22 protected:
23 
24 public:
25 
26  /**
27  ** Constructor for the exporter.
28  */
29  CODEExporterC();
30 
31  virtual bool preprocess(const CModel* copasiModel);
32 
33  virtual bool exportTitleData(const CModel* copasiModel, std::ostream & os);
34 
35  virtual void setReservedNames();
36 
37  virtual std::string exportNumber(double number);
38 
39  virtual std::string translateTimeVariableName();
40 
41  std::string setExportName(const CModelEntity::Status & status, size_t n[], size_t dependent);
42 
43  std::string setConcentrationName(const CModelEntity::Status & status, size_t n[], size_t dependent);
44 
45  std::string setODEName(const std::string & objName);
46 
47  void setExportNameOfFunction(const CEvaluationNode* pNode, std::set<std::string> & tmpset);
48 
49  virtual std::string translateObjectName(const std::string & realName);
50 
51  std::string testName(const std::string & name);
52 
53  virtual bool exportSingleObject(std::ostringstream & which,
54  const std::string & name,
55  const std::string & expression,
56  const std::string & comments);
57 
58  virtual bool exportSingleMetabolite(const CMetab* metab, std::string & expression, std::string & comments);
59 
60  virtual bool exportSingleCompartment(const CCompartment* comp, std::string & expression, std::string & comments);
61 
62  virtual bool exportSingleModVal(const CModelValue* modval, std::string & expression, std::string & comments);
63 
64  virtual bool exportSingleModelEntity(const CModelEntity* tmp, std::string & expression, std::string & comments);
65 
66  virtual bool exportSingleParameter(const CCopasiParameter* param, std::string & expression, std::string & comments);
67 
68  virtual bool exportSingleODE(const CModelEntity* mentity, std::string & equation, std::string & comments);
69 
70  virtual bool exportSingleFunction(const CFunction *func, std::set<std::string>& isExported);
71 
72  virtual std::string getSingleLineComment();
73 
74  virtual bool exportKineticFunctionGroup(const CModel* copasiModel);
75 
76  virtual std::string KineticFunction2ODEmember(const CReaction *reac);
77 
78  virtual std::string exportTitleString(const size_t tmp);
79 
80  virtual std::string exportClosingString(const size_t tmp);
81 
82  virtual bool exportKineticFunction(CReaction* reac);
83 
84  virtual std::string getDisplayExpressionString(CExpression * tmp);
85 
86  std::map< std::string, size_t > Frequancy;
87  std::set<std::string> NameSet;
88 };
89 #endif
virtual bool exportSingleModVal(const CModelValue *modval, std::string &expression, std::string &comments)
std::set< std::string > NameSet
Definition: CODEExporterC.h:87
virtual bool exportSingleModelEntity(const CModelEntity *tmp, std::string &expression, std::string &comments)
virtual std::string translateTimeVariableName()
virtual std::string translateObjectName(const std::string &realName)
virtual bool exportSingleFunction(const CFunction *func, std::set< std::string > &isExported)
virtual bool exportSingleMetabolite(const CMetab *metab, std::string &expression, std::string &comments)
virtual std::string KineticFunction2ODEmember(const CReaction *reac)
virtual std::string exportTitleString(const size_t tmp)
virtual bool exportSingleODE(const CModelEntity *mentity, std::string &equation, std::string &comments)
virtual bool exportSingleObject(std::ostringstream &which, const std::string &name, const std::string &expression, const std::string &comments)
virtual void setReservedNames()
Definition: CMetab.h:178
std::map< std::string, size_t > Frequancy
Definition: CODEExporterC.h:86
virtual std::string exportClosingString(const size_t tmp)
virtual std::string exportNumber(double number)
virtual bool exportSingleCompartment(const CCompartment *comp, std::string &expression, std::string &comments)
virtual bool exportSingleParameter(const CCopasiParameter *param, std::string &expression, std::string &comments)
virtual std::string getSingleLineComment()
void setExportNameOfFunction(const CEvaluationNode *pNode, std::set< std::string > &tmpset)
std::string testName(const std::string &name)
std::string setODEName(const std::string &objName)
virtual bool exportKineticFunctionGroup(const CModel *copasiModel)
The class for handling a chemical kinetic function.
Definition: CFunction.h:29
virtual bool exportKineticFunction(CReaction *reac)
Definition: CModel.h:50
std::string setExportName(const CModelEntity::Status &status, size_t n[], size_t dependent)
virtual bool preprocess(const CModel *copasiModel)
virtual bool exportTitleData(const CModel *copasiModel, std::ostream &os)
std::string setConcentrationName(const CModelEntity::Status &status, size_t n[], size_t dependent)
virtual std::string getDisplayExpressionString(CExpression *tmp)