WimaMeasurementAreaData.h 947 Bytes
Newer Older
Valentin Platzgummer's avatar
Valentin Platzgummer committed
1 2 3
#pragma once

#include <QObject>
4
#include <QGeoCoordinate>
5

Valentin Platzgummer's avatar
Valentin Platzgummer committed
6 7

#include "WimaAreaData.h"
8 9 10
#include "WimaMeasurementArea.h"


Valentin Platzgummer's avatar
Valentin Platzgummer committed
11 12 13 14 15 16

class WimaMeasurementAreaData : public WimaAreaData
{
    Q_OBJECT

public:
17 18 19 20 21
    WimaMeasurementAreaData(QObject *parent = nullptr);
    WimaMeasurementAreaData(const WimaMeasurementAreaData &other, QObject *parent = nullptr);
    WimaMeasurementAreaData(const WimaMeasurementArea &other, QObject *parent = nullptr);
    WimaMeasurementAreaData& operator=(const WimaMeasurementAreaData &other);
    WimaMeasurementAreaData& operator=(const WimaMeasurementArea &other);
Valentin Platzgummer's avatar
Valentin Platzgummer committed
22

23
    QString type() const;
24
    WimaMeasurementAreaData *Clone() const {return new WimaMeasurementAreaData(*this);}
25

26
    static const char* typeString;
Valentin Platzgummer's avatar
Valentin Platzgummer committed
27 28 29 30 31

signals:

public slots:

32 33 34 35
protected:
    void assign(const WimaMeasurementAreaData &other);
    void assign(const WimaMeasurementArea &other);

Valentin Platzgummer's avatar
Valentin Platzgummer committed
36
private:
37
    // see WimaMeasurementArea.h for explanation
Valentin Platzgummer's avatar
Valentin Platzgummer committed
38
};