WimaPlanData.h 1017 Bytes
Newer Older
1 2 3 4 5 6 7 8
#pragma once

#include <QObject>

#include "WimaAreaData.h"
#include "WimaServiceAreaData.h"
#include "WimaCorridorData.h"
#include "WimaMeasurementAreaData.h"
9
#include "WimaJoinedAreaData.h"
10 11 12 13 14 15 16 17 18 19

class WimaPlanData : QObject
{
    Q_OBJECT
public:
    WimaPlanData(QObject *parent = nullptr);
    WimaPlanData(const WimaPlanData &other, QObject *parent = nullptr);
    WimaPlanData& operator=(const WimaPlanData &other);

    // Member Methodes
20
    void append(const WimaJoinedAreaData        &areaData);
21 22 23 24 25 26 27 28 29 30 31 32 33
    void append(const WimaServiceAreaData       &areaData);
    void append(const WimaCorridorData          &areaData);
    void append(const WimaMeasurementAreaData   &areaData);
    void clear();

    QList<const WimaAreaData *> areaList() const;



signals:
    void areaListChanged();

private:
34
    WimaJoinedAreaData      _joinedArea;
35 36 37 38 39
    WimaServiceAreaData     _serviceArea;
    WimaCorridorData        _corridor;
    WimaMeasurementAreaData _measurementArea;
    QList<const WimaAreaData*>    _areaList;
};