ImportCoP Class Reference
Last update: 16.07.2025imports CoP values of amplitudes from CSV file More...
Public Member Functions | |
| check (Structure database) | |
| checks the settings More... | |
| bool | checkOverwriteExisting (Structure database) |
| checks if any CoP values are already existing in the database More... | |
| import (Structure database) | |
| imports the CoP values and inserts them into the database More... | |
| ImportCoP (string filename) | |
| Parses and imports a given file. More... | |
Public Attributes | |
| string | file_name |
| destructor More... | |
| number | min_cop |
| defines the minimum CoP being required for an input to be announced in the data table. If the total F-CoP is lower than or equal to this limit, it will not be created. Default: 0% | |
| bool | overwrite_existing |
| is true if already existing output data objects will be replaced. In this case, also all depending objects of the already existing one will be deleted. | |
Detailed Description
imports CoP values of amplitudes from CSV file
The CSV file is to be:
- separated by tabs
- header row must contain: #\tinput-ident-1\t...\tinput-ident-N\tTotal
- the other rows contain the respective CoP values. An input parameter being not "important" is associated with a CoP=0
- the first column contains the names of the amplitudes (responses). The response names will be associated with the amplitudes.
Constructor & Destructor Documentation
◆ ImportCoP()
| ImportCoP | ( | string | filename | ) |
Parses and imports a given file.
- Parameters
-
filename filename of the CSV file.
Member Function Documentation
◆ check()
| check | ( | Structure | database | ) |
checks the settings
- Parameters
-
database the database where the imported data is supposed to be saved into
◆ checkOverwriteExisting()
| bool checkOverwriteExisting | ( | Structure | database | ) |
◆ import()
| import | ( | Structure | database | ) |
imports the CoP values and inserts them into the database
- Parameters
-
database the database where the imported data are saved to.
Member Data Documentation
◆ file_name
| string file_name |
destructor
the file to be imported