WimaJoinedAreaData.cc 1.63 KB
Newer Older
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 26 27 28 29
#include "WimaJoinedAreaData.h"

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

WimaJoinedAreaData::WimaJoinedAreaData(QObject *parent)
    :WimaAreaData (parent)
{

}

WimaJoinedAreaData::WimaJoinedAreaData(const WimaJoinedAreaData &other, QObject *parent)
    : WimaAreaData (parent)
{
    *this = other;
}

WimaJoinedAreaData::WimaJoinedAreaData(const WimaJoinedArea &other, QObject *parent)
    :   WimaAreaData (parent)
{
    *this = other;
}

/*!
 * \overload operator=()
 *
 * Assigns \a other to the invoking object.
 */
WimaJoinedAreaData &WimaJoinedAreaData::operator=(const WimaJoinedAreaData &other)
{
30
    assign(other);
31 32 33 34 35 36 37 38 39 40 41

    return *this;
}

/*!
 * \overload operator=()
 *
 * Assigns \a other to the invoking object.
 */
WimaJoinedAreaData &WimaJoinedAreaData::operator=(const WimaJoinedArea &other)
{
42
    assign(other);
43 44 45 46 47 48 49 50
    return *this;
}

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

51 52 53 54 55 56 57 58 59 60 61
void WimaJoinedAreaData::assign(const WimaJoinedAreaData &other)
{
    WimaAreaData::assign(other);
}

void WimaJoinedAreaData::assign(const WimaJoinedArea &other)
{
    WimaAreaData::assign(other);
}


62 63 64 65 66 67 68 69 70 71 72

/*!
 * \class WimaAreaData::WimaJoinedAreaData
 * \brief Class to store and exchange data of a \c WimaJoinedAreaData Object.
 * 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.
 *
 * \sa WimaJoinedArea, WimaAreaData
 */