wxMaxima
Loading...
Searching...
No Matches
Public Member Functions
MathParser Class Reference

This class handles parsing the xml representation of a cell tree. More...

#include <MathParser.h>

Public Member Functions

 MathParser (Configuration *cfg, const wxString &zipfile={})
 The constructor.
 
 MathParser (const MathParser &)=delete
 This class doesn't have a copy constructor.
 
MathParseroperator= (const MathParser &)=delete
 This class doesn't have a = operator.
 
void SetUserLabel (const wxString &label)
 Tells the parser what user label to assign to the next label cell.
 
std::unique_ptr< CellParseLine (wxString s, CellType style=MC_TYPE_DEFAULT)
 
std::unique_ptr< CellParseLine (const wxXmlDocument &xml, CellType style=MC_TYPE_DEFAULT)
 
std::unique_ptr< CellParseTag (wxXmlNode *node, bool all=true, int depth=0)
 
std::unique_ptr< CellParseRowTag (wxXmlNode *node, int depth=0)
 
std::unique_ptr< GroupCellCreateTreeFromXMLNode (wxXmlNode *xmlcells)
 
void SetGroup (GroupCell *group)
 Sets the group the newly parsed cells are provided with.
 

Detailed Description

This class handles parsing the xml representation of a cell tree.

The xml representation of a cell tree can be found in the file contents.xml inside a wxmx file

Constructor & Destructor Documentation

◆ MathParser()

MathParser::MathParser ( Configuration cfg,
const wxString &  zipfile = {} 
)
explicit

The constructor.

Todo:
I guess we could increase the performance further by putting the most-frequently-used tags to the front of the list.

Member Function Documentation

◆ SetUserLabel()

void MathParser::SetUserLabel ( const wxString &  label)
inline

Tells the parser what user label to assign to the next label cell.

Maxima doesn't tell us what label the user tries to assign to the current command's output, but the code that sends the current command to maxima can try to detemine that and tell us so wxMaxima can display a speaking label to this cell.


The documentation for this class was generated from the following files: