OpenCurves  0.9
plotexpressionparser.h
1 //
2 // author Kazys Stepanas
3 //
4 // Copyright (c) 2012
5 //
6 #ifndef __PLOTEXPRESSIONPARSER_H_
7 #define __PLOTEXPRESSIONPARSER_H_
8 
9 #include "plotsconfig.h"
10 
11 #include <QList>
12 #include <QString>
13 
14 class QwtPointSeriesData;
15 
16 class PlotInstance;
17 class PlotExpression;
19 
26 {
27 public:
32 
35 
40 
48  PlotExpression *parse(const QString &expression, QStringList &errors);
49 
50 private:
51  class PlotParserImp *_parser;
52 };
53 
54 #endif // __PLOTEXPRESSIONPARSER_H_
PlotExpressionParser(const PlotFunctionRegister *functionRegister=nullptr)
Create an expression parser.
Holds data for a single curve.
Definition: plotinstance.h:43
PlotExpression * parse(const QString &expression, QStringList &errors)
Attempt to parse the expression and return the operation.
~PlotExpressionParser()
Destructor.
A PlotFunctionRegister stores function implementations to expose to the plot expression generator...
Definition: plotfunctionregister.h:26
Parses plot expressions into a PlotExpression that can be bound and executed.
Definition: plotexpressionparser.h:25
const PlotFunctionRegister & functionRegister() const
Returns the function register.
A PlotExpression represents an operation in a plot equation.
Definition: plotexpression.h:91