Parameter.cc 846 Bytes
Newer Older
1 2 3
#include "Parameter.h"
using namespace OpalRT;

4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Parameter::Parameter(char *simulinkPath, char *simulinkName, uint8_t componentID,
                     QGCParamID paramID, unsigned short opalID)
                         : simulinkPath(new QString(simulinkPath)),
                         simulinkName(new QString(simulinkName)),
                         componentID(componentID),
                         paramID(new QGCParamID(paramID)),
                         opalID(opalID)

{
}
Parameter::Parameter(const Parameter &other)
    : componentID(other.componentID),
    opalID(other.opalID)
{
    simulinkPath = new QString(*other.simulinkPath);
    simulinkName = new QString(*other.simulinkName);
    paramID = new QGCParamID(*other.paramID);
}

Parameter::~Parameter()
24
{
25 26 27
    delete simulinkPath;
    delete simulinkName;
    delete paramID;
28
}