libSBML C API  libSBML 5.20.2 C API
Loading...
Searching...
No Matches
MathML.h File Reference

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

Include dependency graph for MathML.h:
This graph shows which files directly or indirectly include this file:

Functions

ASTNode_treadMathMLFromString (const char *xml)
 _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.
 
ASTNode_treadMathMLFromStringWithNamespaces (const char *xml, XMLNamespaces_t *xmlns)
 _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.
 
char * writeMathMLToString (const ASTNode_t *node)
 _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.
 
char * writeMathMLWithNamespaceToString (const ASTNode_t *node, SBMLNamespaces_t *sbmlns)
 _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.
 

Detailed Description

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

Author
Ben Bornstein

Function Documentation

◆ readMathMLFromString()

ASTNode_t * readMathMLFromString ( const char *  xml)

_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.

@_tparam_t _txml_t _ta_t _tstring_t _tcontaining_t _ta_t _tfull_t _tMathML_t _texpression_t.

@_treturn_t _tthe_t _troot_t _tof_t _tan_t _tAST_t _tcorresponding_t _tto_t _tthe_t _tgiven_t _tmathematical_t _texpression_t, _totherwise_t @_tc_t _tNULL_t _tis_t _treturned_t _tif_t _tthe_t _tgiven_t _tstring_t _tis_t @_tc_t _tNULL_t _tor_t _tinvalid_t.

@_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.

@_tif_t _tconly_t @_tmemberof_t _tASTNode_t_t @_tendif_t

◆ readMathMLFromStringWithNamespaces()

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

_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.

@_tparam_t _txml_t _ta_t _tstring_t _tcontaining_t _ta_t _tfull_t _tMathML_t _texpression_t. @_tparam_t _txmlns_t _tan_t @_tif_t _tconly_t _tXMLNamespaces_t_t _tstructure_t @_telse_t _tXMLNamespaces_t _tobject_t@_tendif_t _tcontaining_t _tnamespaces_t _tthat_t _tare_t _tconsidered_t _tactive_t _tduring_t _tthe_t _tread_t. (_tFor_t _texample_t, _tan_t _tSBML_t _tLevel_t&_tnbsp_t;_t3_t _tpackage_t _tnamespace_t.)

@_treturn_t _tthe_t _troot_t _tof_t _tan_t _tAST_t _tcorresponding_t _tto_t _tthe_t _tgiven_t _tmathematical_t _texpression_t, _totherwise_t @_tc_t _tNULL_t _tis_t _treturned_t _tif_t _tthe_t _tgiven_t _tstring_t _tis_t @_tc_t _tNULL_t _tor_t _tinvalid_t.

@_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.

◆ writeMathMLToString()

char * writeMathMLToString ( const ASTNode_t node)

_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.

@_tparam_t _tnode_t _tthe_t _troot_t _tof_t _tan_t _tAST_t _tto_t _twrite_t _tout_t _tto_t _tthe_t _tstream_t.

@_treturn_t _ta_t _tstring_t _tcontaining_t _tthe_t _twritten_t-_tout_t _tMathML_t _trepresentation_t _tof_t _tthe_t _tgiven_t _tAST_t.

@_tnote_t _tThe_t _tstring_t _tis_t _towned_t _tby_t _tthe_t _tcaller_t _tand_t _tshould_t _tbe_t _tfreed_t (_twith_t _tfree_t()) _twhen_t _tno_t _tlonger_t _tneeded_t. @_tc_t _tNULL_t _tis_t _treturned_t _tif_t _tthe_t _tgiven_t _targument_t _tis_t @_tc_t _tNULL_t.

@_tif_t _tconly_t @_tmemberof_t _tASTNode_t_t @_tendif_t

◆ writeMathMLWithNamespaceToString()

char * writeMathMLWithNamespaceToString ( const ASTNode_t node,
SBMLNamespaces_t sbmlns 
)

_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.

@_tparam_t _tnode_t _tthe_t _troot_t _tof_t _tan_t _tAST_t _tto_t _twrite_t _tout_t _tto_t _tthe_t _tstream_t. @_tparam_t _tsbmlns_t _tthe_t _tSBML_t _tnamespace_t _tto_t _tbe_t _tused_t

@_treturn_t _ta_t _tstring_t _tcontaining_t _tthe_t _twritten_t-_tout_t _tMathML_t _trepresentation_t _tof_t _tthe_t _tgiven_t _tAST_t.

@_tnote_t _tThe_t _tstring_t _tis_t _towned_t _tby_t _tthe_t _tcaller_t _tand_t _tshould_t _tbe_t _tfreed_t (_twith_t _tfree_t()) _twhen_t _tno_t _tlonger_t _tneeded_t. @_tc_t _tNULL_t _tis_t _treturned_t _tif_t _tthe_t _tgiven_t _targument_t _tis_t @_tc_t _tNULL_t.

@_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.