    

 ## On this page

  

 

 # ExportOptiSLangBinaryScalars Struct Reference

 Last update: 16.07.2025 

stores settings for export to optiSLang bin file [More...](struct_export_opti_s_lang_binary_scalars.xhtml#details)

## <a name="pub-methods"></a>Public Member Functions

<a id="aa41227b9a864188eba2bf5cc4540a9b1"></a> [check](struct_export_opti_s_lang_binary_scalars.xhtml#aa41227b9a864188eba2bf5cc4540a9b1) () const checks the settings and throws an exception if they are not correct.   
  [ExportOptiSLangBinaryScalars](struct_export_opti_s_lang_binary_scalars.xhtml#a7baeb749da2d54266e70b91f30c6932f) (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...](#a7baeb749da2d54266e70b91f30c6932f)  
  [save](struct_export_opti_s_lang_binary_scalars.xhtml#a6a338dc4344270fcbccadf5667ef12f9) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) exports all scalar data from the given optiSLang3 binary file [More...](#a6a338dc4344270fcbccadf5667ef12f9)  
 ## <a name="pub-attribs"></a>Public Attributes

<a id="a0ba5ea2b1a092278fced690ed1c14d26"></a>bool [export\_only\_generated\_data](struct_export_opti_s_lang_binary_scalars.xhtml#a0ba5ea2b1a092278fced690ed1c14d26) if false, then also imported objects will be exported (default: true)   
 <a id="a508a666821904fea6b45e2a063753d13"></a>string [input](struct_export_opti_s_lang_binary_scalars.xhtml#a508a666821904fea6b45e2a063753d13) The name of the file which serves as a template (this file is not modified)   
 <a id="af41c9d01b4378f52371581950f5bbca6"></a>string [output](struct_export_opti_s_lang_binary_scalars.xhtml#af41c9d01b4378f52371581950f5bbca6) 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.   
 <a id="a2f8b3cba47ad64fb6bda4b6428a032d3"></a>bool [replace\_files](struct_export_opti_s_lang_binary_scalars.xhtml#a2f8b3cba47ad64fb6bda4b6428a032d3) If this is true, the output file will be overwritten if it exists.   
 <a id="a73ead5fea4e7f738176088be3d25182e"></a>[DataObjectContainer](class_data_object_container.xhtml) [responses](struct_export_opti_s_lang_binary_scalars.xhtml#a73ead5fea4e7f738176088be3d25182e) the objects to be exported as responses This set is empty by default. Then, all objects are to be exported.   
 <a id="a518b77cf0d3b3d351c7cdab760752bc6"></a>bool [test\_existence\_of\_inputs](struct_export_opti_s_lang_binary_scalars.xhtml#a518b77cf0d3b3d351c7cdab760752bc6) If this is true, then the input OSL file must contain scalar parameters as "input parameters" which are part of the SOS database.   
 <a id="details" name="details"></a>## Detailed Description

stores settings for export to optiSLang bin file



## Constructor &amp; Destructor Documentation

<a id="a7baeb749da2d54266e70b91f30c6932f"></a>## [◆ ](#a7baeb749da2d54266e70b91f30c6932f)ExportOptiSLangBinaryScalars()

 [ExportOptiSLangBinaryScalars](struct_export_opti_s_lang_binary_scalars.xhtml)  ( 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\_filethe name of the file which serves as a template 



## Member Function Documentation

<a id="a6a338dc4344270fcbccadf5667ef12f9"></a>## [◆ ](#a6a338dc4344270fcbccadf5667ef12f9)save()

 save  ( [Structure](class_structure.xhtml)  *database*) 

exports all scalar data from the given optiSLang3 binary file

Parameters databasethe database where all objects are to be stored