> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ExportOptiSLangBinaryScalars Struct Reference

Part of [Export](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__export)

stores settings for export to optiSLang bin file

## Public Member Functions

| Type | Name |
| - | - |
| | [check](#aa41227b9a864188eba2bf5cc4540a9b1) () const checks the settings and throws an exception if they are not correct. |
| | [ExportOptiSLangBinaryScalars](#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 |
| | [save](#a6a338dc4344270fcbccadf5667ef12f9) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b)) exports all scalar data from the given optiSLang3 binary file |

## Public Attributes

| Type | Name |
| - | - |
|  bool | [export\_only\_generated\_data](#a0ba5ea2b1a092278fced690ed1c14d26) if false, then also imported objects will be exported (default: true) |
|  string | [input](#a508a666821904fea6b45e2a063753d13) The name of the file which serves as a template (this file is not modified) |
|  string | [output](#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. |
|  bool | [replace\_files](#a2f8b3cba47ad64fb6bda4b6428a032d3) If this is true, the output file will be overwritten if it exists. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [responses](#a73ead5fea4e7f738176088be3d25182e) 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](#a518b77cf0d3b3d351c7cdab760752bc6) 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()

```cpp theme={null}
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**

| Name | Description |
| - | - |
| input\_file | the name of the file which serves as a template |

## Member Function Documentation

### save()

```cpp theme={null}
save(Structure database)
```

exports all scalar data from the given optiSLang3 binary file

**Parameters**

| Name | Description |
| - | - |
| database | the database where all objects are to be stored |
