dlr-gtlab / gtlab-core

GTlab Core Framework
https://www.gtlab.de
Other
7 stars 2 forks source link

💡 [REQUEST] - Allow PropertyList types to be extended #1264

Open rainman110 opened 1 month ago

rainman110 commented 1 month ago

Summary

Properties can be extended via the PropertyInterface.

PropertyLists though are tied only to fixed properties, namely:

which are defined in https://github.com/dlr-gtlab/gtlab-core/blob/d3ec67badd1be1d1a77ab0dc2a842aeec3eab56e/src/dataprocessor/gt_objectio.cpp#L39-L44

Also, this code is limited to a fixed list type:

https://github.com/dlr-gtlab/gtlab-core/blob/d3ec67badd1be1d1a77ab0dc2a842aeec3eab56e/src/dataprocessor/gt_objectio.cpp#L843-L892

We should think about making this list extensible.

Improvements

Currently, it is impossible to define a VariantListProperty, as the serialization to xml is allowed only to these types.

Drawbacks

Quite some refactoring seems to be required.

Current workarounds

No response