Seamly2D
Code documentation
qmutokenparser.h
Go to the documentation of this file.
1 /***************************************************************************************************
2  **
3  ** Copyright (C) 2015 Roman Telezhynskyi
4  **
5  ** Permission is hereby granted, free of charge, to any person obtaining a copy of this
6  ** software and associated documentation files (the "Software"), to deal in the Software
7  ** without restriction, including without limitation the rights to use, copy, modify,
8  ** merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
9  ** permit persons to whom the Software is furnished to do so, subject to the following conditions:
10  **
11  ** The above copyright notice and this permission notice shall be included in all copies or
12  ** substantial portions of the Software.
13  **
14  ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
15  ** NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
16  ** NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
17  ** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18  ** OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19  **
20  ******************************************************************************************************/
21 
22 #ifndef QMUTOKENPARSER_H
23 #define QMUTOKENPARSER_H
24 
25 #include <qcompilerdetection.h>
26 #include <QString>
27 #include <QtGlobal>
28 
29 #include "qmuformulabase.h"
30 
31 namespace qmu
32 {
33 
35 {
36 public:
37  QmuTokenParser(const QString &formula, bool osSeparator, bool fromUser = true);
38  virtual ~QmuTokenParser() Q_DECL_OVERRIDE;
39 
40  static bool IsSingle(const QString &formula);
41 
42 private:
43  Q_DISABLE_COPY(QmuTokenParser)
45 };
46 
47 } // namespace qmu
48 
49 #endif // QMUTOKENPARSER_H
static bool IsSingle(const QString &formula)
IsSingle test formula and return true if it contain only one number.
virtual ~QmuTokenParser() Q_DECL_OVERRIDE
Namespace for mathematical applications.