Commit f422574e authored by Bryan Godbolt's avatar Bryan Godbolt

need to implement custom iterator on ParameterList

parent e402c344
......@@ -69,6 +69,17 @@ ParameterList::~ParameterList()
{
delete params;
}
ParameterList::const_iterator::const_iterator()
{
}
ParameterList::begin()
{
}
/**
Get the list of parameters in the simulink model. This function does not require
any prior knowlege of the parameters. It works by first calling OpalGetParameterList to
......
......@@ -37,19 +37,34 @@ namespace OpalRT
class ParameterList;
}
#include "OpalLink.h"
namespace OpalRT{
namespace OpalRT
{
class ParameterList
{
class const_iterator
{
public:
const_iterator();
private:
QMap<int, QMap<QGCParamID, Parameter> >::const_iterator componentIter;
QMap<QGCParamID, Parameter>::const_iterator paramIter;
};
public:
ParameterList();
~ParameterList();
int setValue(int compid, QGCParamID paramid, float value);
float getValue(int compid, QGCParamID paramid);
const_iterator begin() const;
const_iterator end() const;
protected:
QMap<int, QMap<QGCParamID, Parameter> > *params;
void getParameterList(QMap<QString, unsigned short>*);
};
}
#endif // PARAMETERLIST_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment