ghorwin / FMICodeGenerator

A Code Generator that creates native C/C++ code to build Functional Mock-Up Units (FMU) with support for FMI version 2.0 (rollback)
BSD 3-Clause "New" or "Revised" License
51 stars 25 forks source link

Save/Restore FMIGenerator input variables #22

Closed ghorwin closed 5 years ago

ghorwin commented 5 years ago

Need a function to store and restore the state of the FMIGenerator class into a file. This is needed for the wizard to save its current input and restore it at a later point (to continue adding FMI properties or to fix previous input without entering all input data again).

Implementation should be done in member functions write(self, filename) and read(self, filename). Error handling during reading should be basic only (currently, we do not consider these "backup" files as user-edited data).