src/parser.h

changeset 1295
ac8f0297885b
parent 1288
d1e45f90654b
child 1306
be85306198a2
equal deleted inserted replaced
1294:adaad0b329e2 1295:ac8f0297885b
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19 #pragma once 19 #pragma once
20 #include "main.h" 20 #include "main.h"
21 #include "lddocument.h"
21 22
22 class LDHeader; 23 class LDHeader;
23 class Model; 24 class Model;
24 25
25 class Parser : public QObject 26 class Parser : public QObject
34 LDHeader parseHeader(); 35 LDHeader parseHeader();
35 void parseBody(Model& model); 36 void parseBody(Model& model);
36 37
37 static LDObject* parseFromString(Model& model, int position, QString line); 38 static LDObject* parseFromString(Model& model, int position, QString line);
38 39
40 static const QMap<QString, decltype(LDHeader::type)> typeStrings;
41
39 /* 42 /*
40 signals: 43 signals:
41 void parseErrorMessage(QString message); 44 void parseErrorMessage(QString message);
42 */ 45 */
43 46

mercurial