copasi API  0.1
Public Member Functions | Public Attributes
CODEExporterC Class Reference

#include <CODEExporterC.h>

Inheritance diagram for CODEExporterC:
CODEExporter

List of all members.

Public Member Functions

 CODEExporterC ()
virtual bool preprocess (const CModel *copasiModel)
virtual bool exportTitleData (const CModel *copasiModel, std::ofstream &outFile)
virtual void setReservedNames ()
virtual std::string translateTimeVariableName ()
std::string setExportName (const CModelEntity::Status &status, unsigned C_INT32 n[], unsigned C_INT32 dependent)
std::string setConcentrationName (const CModelEntity::Status &status, unsigned C_INT32 n[], unsigned C_INT32 dependent)
std::string setODEName (const std::string &objName)
void setExportNameOfFunction (const CEvaluationNode *pNode, std::set< std::string > &tmpset)
virtual std::string translateObjectName (const std::string &realName)
std::string testName (const std::string &name)
virtual bool exportSingleObject (std::ostringstream &which, std::string &name, std::string &expression, std::string &comments)
virtual bool exportSingleMetabolite (const CMetab *metab, std::string &expression, std::string &comments)
virtual bool exportSingleCompartment (const CCompartment *comp, std::string &expression, std::string &comments)
virtual bool exportSingleModVal (const CModelValue *modval, std::string &expression, std::string &comments)
virtual bool exportSingleModelEntity (const CModelEntity *tmp, std::string &expression, std::string &comments)
virtual bool exportSingleParameter (const CCopasiParameter *param, std::string &expression, std::string &comments)
virtual bool exportSingleODE (const CModelEntity *mentity, std::string &equation, std::string &comments)
bool exportSingleFunction (const CFunction *func, std::set< std::string > &isExported)
void findFunctionsCalls (const CEvaluationNode *pNode, std::set< std::string > &isExported)
virtual bool exportKineticFunctionGroup (const CModel *copasiModel)
virtual std::string KineticFunction2ODEmember (const CReaction *reac)
virtual std::string exportTitleString (const unsigned C_INT32 tmp)
virtual std::string exportClosingString (const unsigned C_INT32 tmp)
virtual bool exportKineticFunction (CReaction *reac)
virtual std::string getDisplayExpressionString (CExpression *tmp)

Public Attributes

std::map< std::string,
unsigned C_INT32 > 
Frequancy
std::set< std::string > NameSet

Constructor & Destructor Documentation

CODEExporterC::CODEExporterC ( )

Constructor for the exporter.


Member Function Documentation

std::string CODEExporterC::exportClosingString ( const unsigned C_INT32  tmp) [virtual]

Reimplemented from CODEExporter.

bool CODEExporterC::exportKineticFunction ( CReaction reac) [virtual]

Reimplemented from CODEExporter.

bool CODEExporterC::exportKineticFunctionGroup ( const CModel copasiModel) [virtual]

Reimplemented from CODEExporter.

bool CODEExporterC::exportSingleCompartment ( const CCompartment comp,
std::string &  expression,
std::string &  comments 
) [virtual]

Reimplemented from CODEExporter.

bool CODEExporterC::exportSingleFunction ( const CFunction func,
std::set< std::string > &  isExported 
)
bool CODEExporterC::exportSingleMetabolite ( const CMetab metab,
std::string &  expression,
std::string &  comments 
) [virtual]

Reimplemented from CODEExporter.

bool CODEExporterC::exportSingleModelEntity ( const CModelEntity tmp,
std::string &  expression,
std::string &  comments 
) [virtual]

Reimplemented from CODEExporter.

bool CODEExporterC::exportSingleModVal ( const CModelValue modval,
std::string &  expression,
std::string &  comments 
) [virtual]

Reimplemented from CODEExporter.

bool CODEExporterC::exportSingleObject ( std::ostringstream &  which,
std::string &  name,
std::string &  expression,
std::string &  comments 
) [virtual]

Reimplemented from CODEExporter.

bool CODEExporterC::exportSingleODE ( const CModelEntity mentity,
std::string &  equation,
std::string &  comments 
) [virtual]

Reimplemented from CODEExporter.

bool CODEExporterC::exportSingleParameter ( const CCopasiParameter param,
std::string &  expression,
std::string &  comments 
) [virtual]

Reimplemented from CODEExporter.

bool CODEExporterC::exportTitleData ( const CModel copasiModel,
std::ofstream &  outFile 
) [virtual]

Reimplemented from CODEExporter.

std::string CODEExporterC::exportTitleString ( const unsigned C_INT32  tmp) [virtual]

Reimplemented from CODEExporter.

void CODEExporterC::findFunctionsCalls ( const CEvaluationNode pNode,
std::set< std::string > &  isExported 
)
std::string CODEExporterC::getDisplayExpressionString ( CExpression tmp) [virtual]

Reimplemented from CODEExporter.

std::string CODEExporterC::KineticFunction2ODEmember ( const CReaction reac) [virtual]

Reimplemented from CODEExporter.

bool CODEExporterC::preprocess ( const CModel copasiModel) [virtual]

Reimplemented from CODEExporter.

std::string CODEExporterC::setConcentrationName ( const CModelEntity::Status status,
unsigned C_INT32  n[],
unsigned C_INT32  dependent 
)
std::string CODEExporterC::setExportName ( const CModelEntity::Status status,
unsigned C_INT32  n[],
unsigned C_INT32  dependent 
)
void CODEExporterC::setExportNameOfFunction ( const CEvaluationNode pNode,
std::set< std::string > &  tmpset 
)
std::string CODEExporterC::setODEName ( const std::string &  objName) [virtual]

Reimplemented from CODEExporter.

void CODEExporterC::setReservedNames ( ) [virtual]

Reimplemented from CODEExporter.

std::string CODEExporterC::testName ( const std::string &  name)

This method tests whether the given C name already assigned, put the new name (in cappital letters: all names can be upper or lower case) in the set of assigned names or modify the name

std::string CODEExporterC::translateObjectName ( const std::string &  realName) [virtual]

This method adapt a Copasi name for C syntax: Names can not start with a number. Any other combination of letters and numbers is valid as is the underscore.

Reimplemented from CODEExporter.

std::string CODEExporterC::translateTimeVariableName ( ) [virtual]

Reimplemented from CODEExporter.


Member Data Documentation

std::map< std::string, unsigned C_INT32 > CODEExporterC::Frequancy
std::set<std::string> CODEExporterC::NameSet

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines