WimaMeasurementAreaData.cc 1.24 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 "WimaMeasurementAreaData.h"

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

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

}

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

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

/*!
 * \overload operator=();
 *
 * Assigns \a other to the invoking object.
 */
WimaMeasurementAreaData &WimaMeasurementAreaData::operator=(const WimaMeasurementAreaData &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.
 */
WimaMeasurementAreaData &WimaMeasurementAreaData::operator=(const WimaMeasurementArea &other)
{
42
    assign(other);
43 44 45 46

    return *this;
}

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

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

void WimaMeasurementAreaData::assign(const WimaMeasurementArea &other)
{
    WimaAreaData::assign(other);
}



64