MAVLinkXMLParser.h 678 Bytes
Newer Older
pixhawk's avatar
pixhawk committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#ifndef MAVLINKXMLPARSER_H
#define MAVLINKXMLPARSER_H

#include <QObject>
#include <QDomDocument>
#include <QString>

class MAVLinkXMLParser : public QObject
{
    Q_OBJECT
public:
    MAVLinkXMLParser(QDomDocument* document, QString outputDirectory, QObject* parent=0);
    MAVLinkXMLParser(QString document, QString outputDirectory, QObject* parent=0);
    ~MAVLinkXMLParser();

public slots:
    /** @brief Parse XML and generate C files */
    bool generate();

20 21 22 23
signals:
    /** @brief Status message on the parsing */
    void parseState(QString message);

pixhawk's avatar
pixhawk committed
24 25 26
protected:
    QDomDocument* doc;
    QString outputDirName;
27
    QString fileName;
pixhawk's avatar
pixhawk committed
28 29 30
};

#endif // MAVLINKXMLPARSER_H