i have a function that loads datasets, which is quite complex, but you can use it as such:
How can I make a wrapper function that I can use to dynamically load these sets?Code:loadset setname ("filename.h5");
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:
where string("setname" + i) is the variable's name. obviously this code won't work.Code:for (int i = 0; i < chunk; i++){ loadset string("setname" + i) ("filename1.h5");