Best way to store digitizer (or oscilloscope) data for analysis

Hello again,
I tried a lot of different things since your last post but I am still not succeeding.
The problem is that the xml format I have is quite strange and it’s difficult to read it using c++.
It would be great to do what you said by pass to the C++ line the variables I have in python.
I found this post which explains a way to this but I can’t find a way to return an RVec or an std::vector<double> instead of a simple double type. I’ve also tried with something similar to this other post but I got nothing.
I would appreciate any help to do this, anyway I think I have another way out: I could just tell python to write everything in a .txt file and then read it with C++, still I would prefer not to do this because I would double the size occupied by my data and it would be more computationally expensive.
Thanks anyway for all your help.