WimaJoinedAreaData.cc 1.79 KB
Newer Older
1 2 3 4 5
#include "WimaJoinedAreaData.h"

const char *WimaJoinedAreaData::typeString = "WimaJoinedAreaData";

WimaJoinedAreaData::WimaJoinedAreaData(QObject *parent)
6
    : WimaAreaData(parent) {}
7

8 9 10 11
WimaJoinedAreaData::WimaJoinedAreaData(const WimaJoinedAreaData &other,
                                       QObject *parent)
    : WimaAreaData(parent) {
  *this = other;
12 13
}

14 15 16 17
WimaJoinedAreaData::WimaJoinedAreaData(const WimaJoinedArea &other,
                                       QObject *parent)
    : WimaAreaData(parent) {
  *this = other;
18 19 20 21 22 23 24
}

/*!
 * \overload operator=()
 *
 * Assigns \a other to the invoking object.
 */
25 26 27
WimaJoinedAreaData &WimaJoinedAreaData::
operator=(const WimaJoinedAreaData &other) {
  assign(other);
28

29
  return *this;
30 31 32 33 34 35 36
}

/*!
 * \overload operator=()
 *
 * Assigns \a other to the invoking object.
 */
37 38 39
WimaJoinedAreaData &WimaJoinedAreaData::operator=(const WimaJoinedArea &other) {
  assign(other);
  return *this;
40 41
}

42 43 44 45
QString WimaJoinedAreaData::mapVisualQML() const {
  return QStringLiteral("WimaJoinedAreaDataVisual.qml");
}

46
QString WimaJoinedAreaData::type() const { return this->typeString; }
47

48 49
void WimaJoinedAreaData::assign(const WimaJoinedAreaData &other) {
  WimaAreaData::assign(other);
50 51
}

52 53
void WimaJoinedAreaData::assign(const WimaJoinedArea &other) {
  WimaAreaData::assign(other);
54 55
}

56 57 58
/*!
 * \class WimaAreaData::WimaJoinedAreaData
 * \brief Class to store and exchange data of a \c WimaJoinedAreaData Object.
59 60 61 62 63
 * Class to store and exchange data of a \c WimaJoinedArea Object. In contrast
 * to \c WimaJoinedArea this class does not provied any interface to a grafical
 * user interface, neiter it uses the QGC Fact System. It is designed to
 * exchange data between the \c WimaPlaner and the \c WimaController class. And
 * it is the derived from WimaAreaData.
64 65 66
 *
 * \sa WimaJoinedArea, WimaAreaData
 */