qse  0.5.4
qseparameter.cpp
Go to the documentation of this file.
1 #include "qseparameter.h"
2 #include "qseoperator.h"
3 
4 #include <stdio.h>
5 
6 QseParameter::QseParameter(QseOperator* op, const QString& nm, QObject* parent)
7  : QObject(parent),
8  m_Operator(op)
9 {
10  setName(op->name()+"."+nm);
11 
12 // printf("Initialized %s\n", qPrintable(name()));
13 
14  m_Operator->addParameter(this);
15 }
16 
17 QString QseParameter::name() const
18 {
19  return m_Name;
20 }
21 
22 void QseParameter::setName(const QString& nm)
23 {
24  m_Name = nm;
25 }
26 
27 QVariant QseParameter::value() const
28 {
29  return m_Value;
30 }
31 
32 void QseParameter::setValue(const QVariant& val)
33 {
34  m_Value = val;
35 }
QVariant value() const
QString name() const
QseOperator * m_Operator
Definition: qseparameter.h:27
void setValue(const QVariant &value)
QString name() const
Definition: qseoperator.cpp:11
QVariant m_Value
Definition: qseparameter.h:26
void setName(const QString &nm)
QString m_Name
Definition: qseparameter.h:25
void addParameter(QseParameter *parameter)
Definition: qseoperator.cpp:21