.AddAttribute ("MeasuredPoints",
"The set of measured points in the vector.",
ObjectVectorValue (),
MakeObjectVectorAccessor (&MeasurementSet::m_measurements),
MakeObjectVectorChecker<Measurement> ())
but how do I actually set that parameter when I'm setting the object's
attributes up in the helper?
std::vector<Ptr<Measurement> > meas;
helper.Set("MeasuredPoints", ObjectVectorValue(meas));
doesn't work, nor does
helper.Set("MeasuredPoints", ObjectVectorValue<Measurement>(meas));
or
helper.Set("MeasuredPoints", ObjectVectorValue<Ptr<Measurement> >(meas));
It looks like ObjectVectorValue doesn't really have that kind of constructor.
I'm using the DoubleValue object as a reference here...
Dan
The short answer is that this is not possible. See ObjectVectorAccessor::Set.
[lengthy rationale elided]
Mathieu
--
Mathieu Lacage <mathieu...@gmail.com>