libSBML C API  libSBML 5.20.4 C API
Loading...
Searching...
No Matches
MathML.cpp File Reference

Utilities for reading and writing MathML to/from text strings. More...

Include dependency graph for MathML.cpp:

Functions

ASTNode * readMathML (XMLInputStream &stream, std::string reqd_prefix, bool inRead)
 @_tcond_t _tdoxygenLibsbmlInternal_t
 
ASTNode_treadMathMLFromString (const char *xml)
 @_tendcond_t
 
ASTNode_treadMathMLFromStringWithNamespaces (const char *xml, XMLNamespaces_t *xmlns)
 @_tif_t _tconly_t @_tmemberof_t _tASTNode_t_t @_tendif_t
 
void setSBMLDefinitionURLs (XMLInputStream &stream)
 @_tendcond_t
 
void writeMathML (const ASTNode *node, XMLOutputStream &stream, SBMLNamespaces *sbmlns)
 @_tendcond_t
 
std::string writeMathMLToStdString (const ASTNode *node)
 
std::string writeMathMLToStdString (const ASTNode *node, SBMLNamespaces *sbmlns)
 
char * writeMathMLToString (const ASTNode *node)
 @_tif_t _tconly_t @_tmemberof_t _tASTNode_t_t @_tendif_t
 
char * writeMathMLWithNamespaceToString (const ASTNode_t *node, SBMLNamespaces_t *sbmlns)
 @_tif_t _tconly_t @_tmemberof_t _tASTNode_t_t @_tendif_t
 

Detailed Description

Utilities for reading and writing MathML to/from text strings.

Author
Ben Bornstein

Function Documentation

◆ readMathML()

ASTNode * readMathML ( XMLInputStream &  stream,
std::string  reqd_prefix,
bool  inRead 
)

@_tcond_t _tdoxygenLibsbmlInternal_t

◆ readMathMLFromString()

ASTNode_t * readMathMLFromString ( const char *  xml)

@_tendcond_t

_tReads_t _tthe_t _tMathML_t _tfrom_t _tthe_t _tgiven_t _tXML_t _tstring_t, _tconstructs_t _ta_t _tcorresponding_t _tabstract_t _tsyntax_t _ttree_t, _tand_t _treturns_t _ta_t _tpointer_t _tto_t _tthe_t _troot_t _tof_t _tthe_t _ttree_t.

@_tif_t _tconly_t @_tmemberof_t _tASTNode_t_t @_tendif_t

Examples
createExampleSBML.c, translateL3Math.c, and translateMath.c.

◆ readMathMLFromStringWithNamespaces()

ASTNode_t * readMathMLFromStringWithNamespaces ( const char *  xml,
XMLNamespaces_t xmlns 
)

@_tif_t _tconly_t @_tmemberof_t _tASTNode_t_t @_tendif_t

_tReads_t _tthe_t _tMathML_t _tfrom_t _tthe_t _tgiven_t _tXML_t _tstring_t, _tconstructs_t _ta_t _tcorresponding_t _tabstract_t _tsyntax_t _ttree_t, _tand_t _treturns_t _ta_t _tpointer_t _tto_t _tthe_t _troot_t _tof_t _tthe_t _ttree_t.

◆ setSBMLDefinitionURLs()

void setSBMLDefinitionURLs ( XMLInputStream &  stream)

@_tendcond_t

◆ writeMathML()

void writeMathML ( const ASTNode *  node,
XMLOutputStream &  stream,
SBMLNamespaces *  sbmlns 
)

@_tendcond_t

@_tcond_t _tdoxygenLibsbmlInternal_t

◆ writeMathMLToStdString() [1/2]

std::string writeMathMLToStdString ( const ASTNode *  node)

◆ writeMathMLToStdString() [2/2]

std::string writeMathMLToStdString ( const ASTNode *  node,
SBMLNamespaces *  sbmlns 
)

◆ writeMathMLToString()

char * writeMathMLToString ( const ASTNode *  node)

@_tif_t _tconly_t @_tmemberof_t _tASTNode_t_t @_tendif_t

Examples
translateL3Math.c, and translateMath.c.

◆ writeMathMLWithNamespaceToString()

char * writeMathMLWithNamespaceToString ( const ASTNode_t node,
SBMLNamespaces_t sbmlns 
)

@_tif_t _tconly_t @_tmemberof_t _tASTNode_t_t @_tendif_t

_tWrites_t _tthe_t _tgiven_t _tAST_t _tnode_t (_tand_t _tits_t _tchildren_t) _tto_t _ta_t _tstring_t _tas_t _tMathML_t, _tand_t _treturns_t _tthe_t _tstring_t.