MAVLinkXMLParser.h 560 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 20 21 22 23 24 25
#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();

protected:
    QDomDocument* doc;
    QString outputDirName;
};

#endif // MAVLINKXMLPARSER_H