    

 ## On this page

  

 

 # ImportCoP Class Reference

 Last update: 16.07.2025 

imports [CoP](struct_co_p.xhtml "Reference implementation for a quality metric for MOP models. ") values of amplitudes from CSV file [More...](class_import_co_p.xhtml#details)

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

 [check](class_import_co_p.xhtml#a47c34ec1e578c2ce27cf1c5fcd0d1704) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) checks the settings [More...](#a47c34ec1e578c2ce27cf1c5fcd0d1704)  
 bool [checkOverwriteExisting](class_import_co_p.xhtml#abdcd2125bfa27ba032579f06c6c15b41) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) checks if any [CoP](struct_co_p.xhtml "Reference implementation for a quality metric for MOP models. ") values are already existing in the database [More...](#abdcd2125bfa27ba032579f06c6c15b41)  
  [import](class_import_co_p.xhtml#a73dd3f56399568385400db0c3fc08295) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) imports the [CoP](struct_co_p.xhtml "Reference implementation for a quality metric for MOP models. ") values and inserts them into the database [More...](#a73dd3f56399568385400db0c3fc08295)  
  [ImportCoP](class_import_co_p.xhtml#a8939bd20c8a90fd23e86b01270f271aa) (string filename) Parses and imports a given file. [More...](#a8939bd20c8a90fd23e86b01270f271aa)  
 ## <a name="pub-attribs"></a>Public Attributes

string [file\_name](class_import_co_p.xhtml#a755d42f2e9c635ce2213e0efad62b796) destructor [More...](#a755d42f2e9c635ce2213e0efad62b796)  
 <a id="a9c4157039d23c5bdda684578b63c50e5"></a>number [min\_cop](class_import_co_p.xhtml#a9c4157039d23c5bdda684578b63c50e5) defines the minimum [CoP](struct_co_p.xhtml "Reference implementation for a quality metric for MOP models. ") 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%   
 <a id="ade25e60bd85c8b4abd4f5b416cae0eb9"></a>bool [overwrite\_existing](class_import_co_p.xhtml#ade25e60bd85c8b4abd4f5b416cae0eb9) 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.   
 <a id="details" name="details"></a>## Detailed Description

imports [CoP](struct_co_p.xhtml "Reference implementation for a quality metric for MOP models. ") 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](struct_co_p.xhtml "Reference implementation for a quality metric for MOP models. ") values. An input parameter being not "important" is associated with a [CoP](struct_co_p.xhtml "Reference implementation for a quality metric for MOP models. ")=0
- the first column contains the names of the amplitudes (responses). The response names will be associated with the amplitudes.



## Constructor &amp; Destructor Documentation

<a id="a8939bd20c8a90fd23e86b01270f271aa"></a>## [◆ ](#a8939bd20c8a90fd23e86b01270f271aa)ImportCoP()

 [ImportCoP](class_import_co_p.xhtml)  ( string  *filename*) 

Parses and imports a given file.

Parameters filenamefilename of the CSV file. 



## Member Function Documentation

<a id="a47c34ec1e578c2ce27cf1c5fcd0d1704"></a>## [◆ ](#a47c34ec1e578c2ce27cf1c5fcd0d1704)check()

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

checks the settings

Parameters databasethe database where the imported data is supposed to be saved into 



<a id="abdcd2125bfa27ba032579f06c6c15b41"></a>## [◆ ](#abdcd2125bfa27ba032579f06c6c15b41)checkOverwriteExisting()

 bool checkOverwriteExisting  ( [Structure](class_structure.xhtml)  *database*) 

checks if any [CoP](struct_co_p.xhtml "Reference implementation for a quality metric for MOP models. ") values are already existing in the database

Parameters databasethe database to be tested Returnstrue if any [CoP](struct_co_p.xhtml "Reference implementation for a quality metric for MOP models. ") values were already imported. 



<a id="a73dd3f56399568385400db0c3fc08295"></a>## [◆ ](#a73dd3f56399568385400db0c3fc08295)import()

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

imports the [CoP](struct_co_p.xhtml "Reference implementation for a quality metric for MOP models. ") values and inserts them into the database

Parameters databasethe database where the imported data are saved to. 



## Member Data Documentation

<a id="a755d42f2e9c635ce2213e0efad62b796"></a>## [◆ ](#a755d42f2e9c635ce2213e0efad62b796)file\_name

 string file\_name

destructor

the file to be imported