The documentation for ECL to C++ Mapping:
is missing some information needed to return datasets with variable length fields. Specifically:
- How do you pack variable length fields such as SET OF REAL. It turns out that there is an ALL flag and length that needs to be packed before the set data. A field format table (similar to the very useful one for input variables) needs to be added that shows how each data type is provided back to the dataset.
- Also, the example I was given for returning streamed datasets uses the RtlDynamicRowBuilder class, which was not used in the examples in the doc above. Using this class with variable length fields also requires documentation of the ensureCapacity call of that class. It is possible that that class is not required in which case this comment is moot