    

 ## On this page

  

 

 # ImportOptiSLangSignal Class Reference

 Last update: 16.07.2025 

Sets up an SoS project for a single user defined optiSLang 3 signal identifier. [More...](class_import_opti_s_lang_signal.xhtml#details)

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

 [importData](class_import_opti_s_lang_signal.xhtml#a990ac4d4d6b49f8ce6f253c6d7b619d5) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b), string signal\_ident) Imports all designs of the specified signal identifier from the current optiSLang binary file. [More...](#a990ac4d4d6b49f8ce6f253c6d7b619d5)  
 [MetaStructure](class_meta_structure.xhtml) [importMesh](class_import_opti_s_lang_signal.xhtml#a7c46ddb26ae2f6cafd85ca6e7b7128fc) (string signal\_ident) Imports the mesh for the given signal identifier. [More...](#a7c46ddb26ae2f6cafd85ca6e7b7128fc)  
  [ImportOptiSLangSignal](class_import_opti_s_lang_signal.xhtml#a728c7c7a95005527ecb79ae0f5356fd3) (string file\_path) Reads in the optiSLang binary file given. [More...](#a728c7c7a95005527ecb79ae0f5356fd3)  
 std::vector&lt; string &gt; [signalIdents](class_import_opti_s_lang_signal.xhtml#a0799bab98eadfaca1bed3ceacc1b2f2e) () ## <a name="pub-attribs"></a>Public Attributes

<a id="a3a1a90139c2c8ab1fca0ea8b1790b7b2"></a>string [filename](class_import_opti_s_lang_signal.xhtml#a3a1a90139c2c8ab1fca0ea8b1790b7b2) The absolute path to the optiSlang binary file we are currently dealing with.   
 <a id="ad737785c9535293035604d481a12bbfb"></a>bool [resample\_abscissa](class_import_opti_s_lang_signal.xhtml#ad737785c9535293035604d481a12bbfb) defines the strategy for unifying the support points. true: resamples abscissa if not equal among all designs (default); false: collects all points   
 <a id="a205eefb25638b78327b52649977a67d3"></a>bool [shrink\_abscissa](class_import_opti_s_lang_signal.xhtml#a205eefb25638b78327b52649977a67d3) defines the considered interval. true: use minimum existing interval (default), false: use maximum existing interval   
 <a id="details" name="details"></a>## Detailed Description

Sets up an SoS project for a single user defined optiSLang 3 signal identifier.

Reads in the given optiSLang 3 binary file and provides a list of all present, non-failed channel identifier. The user then selects a single identifier to generate and import its mesh (importMesh) and its data (importData).

WarningCurrently only compatible signal meshes are supported. 

## Constructor &amp; Destructor Documentation

<a id="a728c7c7a95005527ecb79ae0f5356fd3"></a>## [◆ ](#a728c7c7a95005527ecb79ae0f5356fd3)ImportOptiSLangSignal()

 [ImportOptiSLangSignal](class_import_opti_s_lang_signal.xhtml)  ( string  *file\_path*) 

Reads in the optiSLang binary file given.

Parameters file\_pathThe path to an existing optiSLang binary file Exceptions std::exceptionIf a filesystem error occurs or the optiSLang binary file is broken 



## Member Function Documentation

<a id="a990ac4d4d6b49f8ce6f253c6d7b619d5"></a>## [◆ ](#a990ac4d4d6b49f8ce6f253c6d7b619d5)importData()

 importData  ( [Structure](class_structure.xhtml)  *database*,    string  *signal\_ident*   ) 

Imports all designs of the specified signal identifier from the current optiSLang binary file.

This method tries to import as much designs as possible and does even proceed in case of errors. Currently only compatible meshes may be imported

Parameters \[in,out\]databaseThe database where all the compatible data is to be added signal\_identThe signal identifier to be extracted and added to the database Exceptions Onincompatible meshes. 



<a id="a7c46ddb26ae2f6cafd85ca6e7b7128fc"></a>## [◆ ](#a7c46ddb26ae2f6cafd85ca6e7b7128fc)importMesh()

 [MetaStructure](class_meta_structure.xhtml) importMesh  ( string  *signal\_ident*) 

Imports the mesh for the given signal identifier.

Parameters signal\_identThe signal identifier used to build the reference mesh. ReturnsA meta structure containing the mesh 



<a id="a0799bab98eadfaca1bed3ceacc1b2f2e"></a>## [◆ ](#a0799bab98eadfaca1bed3ceacc1b2f2e)signalIdents()

 std::vector&lt; string &gt; signalIdents  ( ) 

ReturnsA vector listing the idents of all signals