WimaCorridorData.cpp 1.61 KB
Newer Older
Valentin Platzgummer's avatar
Valentin Platzgummer committed
1 2
#include "WimaCorridorData.h"

3
const char *WimaCorridorData::typeString = "WimaCorridorData";
Valentin Platzgummer's avatar
Valentin Platzgummer committed
4 5 6 7 8 9 10

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

}

11 12
WimaCorridorData::WimaCorridorData(const WimaCorridorData &other, QObject *parent)
    : WimaAreaData (parent)
Valentin Platzgummer's avatar
Valentin Platzgummer committed
13
{
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
    *this = other;
}

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

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

    return *this;
}

/*!
 * \overload operator=()
 *
 * Assigns \a other to the invoking object.
 */
WimaCorridorData &WimaCorridorData::operator=(const WimaCorridor &other)
{
42
    this->assign(other);
Valentin Platzgummer's avatar
Valentin Platzgummer committed
43

44
    return *this;
Valentin Platzgummer's avatar
Valentin Platzgummer committed
45 46
}

47 48 49 50 51
QString WimaCorridorData::type() const
{
    return this->typeString;
}

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

void WimaCorridorData::assign(const WimaCorridor &corridor)
{
    WimaAreaData::assign(corridor);
}

62

Valentin Platzgummer's avatar
Valentin Platzgummer committed
63 64 65 66 67 68 69 70 71 72
/*!
 * \class WimaAreaData::WimaCorridorData
 * \brief Class to store and exchange data of a \c WimaCorridorData Object.
 * Class to store and exchange data of a \c WimaCorridor Object. In contrast to \c WimaCorridor 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 WimaCorridor, WimaAreaData
 */