ExportOptiSLangBinaryScalars Struct Reference
Last update: 16.07.2025stores settings for export to optiSLang bin file More...
Public Member Functions | |
| check () const | |
| checks the settings and throws an exception if they are not correct. | |
| ExportOptiSLangBinaryScalars (string input_file) | |
| default constructor It will generate a default output filename (appending __output_sos to the name), depending on 4 digits and replace_files disabled More... | |
| save (Structure database) | |
| exports all scalar data from the given optiSLang3 binary file More... | |
Public Attributes | |
| bool | export_only_generated_data |
| if false, then also imported objects will be exported (default: true) | |
| string | input |
| The name of the file which serves as a template (this file is not modified) | |
| string | output |
| The name of the output file. The input file will be changed acocrding to the contents of the data base. Only the affected parts of the file are replaced. | |
| bool | replace_files |
| If this is true, the output file will be overwritten if it exists. | |
| DataObjectContainer | responses |
| the objects to be exported as responses This set is empty by default. Then, all objects are to be exported. | |
| bool | test_existence_of_inputs |
| If this is true, then the input OSL file must contain scalar parameters as "input parameters" which are part of the SOS database. | |
Detailed Description
stores settings for export to optiSLang bin file
Constructor & Destructor Documentation
◆ ExportOptiSLangBinaryScalars()
| ExportOptiSLangBinaryScalars | ( | string | input_file | ) |
default constructor It will generate a default output filename (appending __output_sos to the name), depending on 4 digits and replace_files disabled
- Parameters
-
input_file the name of the file which serves as a template
Member Function Documentation
◆ save()
| save | ( | Structure | database | ) |
exports all scalar data from the given optiSLang3 binary file
- Parameters
-
database the database where all objects are to be stored