dynamically loading data?
i have a function that loads datasets, which is quite complex, but you can use it as such:
Code:
loadset setname ("filename.h5");
How can I make a wrapper function that I can use to dynamically load these sets?
For example, It is up to the user to determine how many sets must be loaded simultaneously. So I would need to dynamically comeup with 'setname', such as, if the user enters "5", then this:
Code:
for (int i = 0; i < chunk; i++){
loadset string("setname" + i) ("filename1.h5");
where string("setname" + i) is the variable's name. obviously this code won't work.