Page 1 of 1

write moco solution extra parameters

Posted: Wed Oct 07, 2020 12:05 am
by ostr1969
can i add extra parameters at the header of Moco solution::write?.
i want to add some info on the accuracy and other info parameters before writing

Re: write moco solution extra parameters

Posted: Wed Oct 07, 2020 3:04 am
by ostr1969
SOLVED:
i modified the

Code: Select all

MocoTrajectory.h
and moved the

Code: Select all

convertToTable
to be public
then i can:

Code: Select all

    TimeSeriesTable ts=solution.convertToTable();
    ts.updTableMetaData().setValueForKey("new key",
                std::to_string(newdouble) );