Given an array of types, found e.g. in the header of a file (a "HeaderStructureMap", say):
05 02 04 01 09 0a
How can one use those to reference a repeated set of structures elsewhere – e.g. with the body of the file containing (variable-length, repeated, heterogenous structures), like this:
Structure05
Structure02
Structure04
Structure01
Structure09
Structure0a
In the only examples I've seen a TypeId is a property of the structure, and one uses the 'Mask' to set it. Unfortunately that does not work here.
What would make sense is to have a repeated structure Parent that repeats over a HeaderStructureMap, and maps to a child based on the HeaderStructureMap[i] => Structure[09].
Unfortunately it is not clear how to accomplish this – though I'd have expected it to be fairly common.
Scripting is an option – one would think it'd be fairly straightforward, but I've not seen any examples that would serve as good concise precedents for this.
Has anyone encountered a similar situation?
Cheers