Open jmhorcas opened 3 months ago
@jmhorcas how this differs from the currently available csvreader in the core? If the configurations are not fm configurations (the attributes one are). In other words they are just key value pairs, they belong to the core within the configuration metamodel. Otherwise, they belong to the fm metamodel.
The different with the current CSVReader in the core is that it only reads one configuration per file. Thus, if you have 50 configurations you need 50 files. The readers I propose read a sample of configurations from a single file.
All the readers/writers I propose (including the attributes reader which is based on key-value pairs) are based on string "str" or "Any" types. Thus, the configuration are not FM configurations, nor the attributes.
Is your feature request related to a problem? Please describe. Need of reading and writing sample (lists) of configurations in a file.
Describe the solution you'd like I provide two different readers and two different writers available here:
Configurations CSV Writer: This writes a list of configurations to a CSV file in the following format:
Configurations CSV Reader: This reads a list of configurations from a CSV file in the previous format.
Configurations List Writer: This writes a list of configurations to a txt file in the folllowing format:
where each list represents the selected elements in a configuration.
Configurations List Reader: This reads a list of configurations in a txt file in the previous format.
Describe alternatives you've considered
Additional context
I just have also available a readers/writers for attributes in configurations. Let me know if you are interested in these other attributes readers/writers. See ConfigurationsAttributesReader