Open
Description
(Follow-up to a conversation we had today)
In a CMS presentation by @fwyzard we found an interesting use case: defining memory layouts outside of a C++ source code. In this example, the layout is pre-defined in an XML file, but other formats are certainly possible.
Example:
<class name="SomeSoAStruct">
<field name="raw_mem" />
<field name="bytes" />
<field name="x" comment="[vector]" />
<field name="y" comment="[vector]" />
<field name="z" comment="[vector]" />
<field name="a" comment="[scalar]" />
</class>
The import of the file should result in a corresponding LLAMA type. Would this be possible in LLAMA? And would an import/export functionality fit its scope?