RunCommand c++ sdk giving paramters as vector or matrix

I am prototyping a lot in rhino python but have decided to used c++ sdk for the more slow algorithm.

This means that I need to move data like [1,2,3,4,5,6,7,8…334] from my script to the c++ plugin.

How I do it now:

# Python
L = [1,2]
success = rs.Command("_-MyProgram %f %f  _Enter" % (L[0], L[1]))

// C++ inside MyProgram 
std::vector<double> data;
CRhinoGetNumber gd;
for(int i = 0; i <2; ++i){

If insted of having a list of 2 element had a list of 200 element: then I could fixt it easy by looping or creating a string and parsing it after words, but there will still be CommandPrompt 200 times and it just seem wrong.

Are there other ways of doing this:

best regards kasper

How about using GetString to put the whole string of input at once, and in the c++ code you parse the string into its constituents?

Yes that is a solution but not that elegant.