I have 10 independent data structures that contain unsigned bytes and bit fields from different data sources. I am using C++, and was looking for a way to combine all these data structures into one data structure for the purpose of passing all the data around between different methods.
For example I have an object that uses data from all 10 data structures, but I have references similar to:
method(datastructure1 &d1, datastructure &d2, datastructure &d3, datastructure &d4, ...)
I want to avoid this, because it is getting hard to keep track and maintain. I would prefer to have:
I just cant think of how to combine all the data so I can still uniquely access the data from each individual structure.