labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

VariableParser.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : VariableParser.h
3  Project : LabPlot
4  Description : Variable parser for different CAS backends
5  --------------------------------------------------------------------
6  Copyright : (C) 2015 Garvit Khatri (garvitdelhi@gmail.com)
7  Copyright : (C) 2016 by Alexander Semke (alexander.semke@web.de)
8 
9  ***************************************************************************/
10 
11 /***************************************************************************
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * *
18  * This program is distributed in the hope that it will be useful, *
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21  * GNU General Public License for more details. *
22  * *
23  * You should have received a copy of the GNU General Public License *
24  * along with this program; if not, write to the Free Software *
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
26  * Boston, MA 02110-1301 USA *
27  * *
28  ***************************************************************************/
29 
30 #ifndef VARIABLEPARSER_H
31 #define VARIABLEPARSER_H
32 
33 class QString;
34 #include <QVector>
35 
37 public:
38  VariableParser(QString name, QString value);
40  bool isParsed();
41 
42 private:
43  QString m_backendName;
44  QString m_string;
46  bool m_parsed{false};
47 
48  void parseMaximaValues();
49  void parsePythonValues();
50  void parseRValues();
51  void parseOctaveValues();
52  void parseValues(const QStringList&);
53 };
54 
55 #endif // VARIABLEPARSER_H
VariableParser(QString name, QString value)
void parseMaximaValues()
QString m_backendName
QVector< double > values()
void parsePythonValues()
void parseOctaveValues()
QVector< double > m_values
void parseValues(const QStringList &)