30 public: |
30 public: |
31 enum { EndOfModel = -1 }; |
31 enum { EndOfModel = -1 }; |
32 |
32 |
33 Parser(QIODevice& device, QObject* parent = nullptr); |
33 Parser(QIODevice& device, QObject* parent = nullptr); |
34 |
34 |
35 LDHeader parseHeader(); |
35 LDHeader parseHeader(Winding& winding); |
36 void parseBody(Model& model); |
36 void parseBody(Model& model); |
37 |
37 |
38 static LDObject* parseFromString(Model& model, int position, QString line); |
38 static LDObject* parseFromString(Model& model, int position, QString line); |
39 |
39 |
40 static const QMap<QString, decltype(LDHeader::type)> typeStrings; |
40 static const QMap<QString, decltype(LDHeader::type)> typeStrings; |