Skip to main content
Part of Export Exports SoS field data to a CSV text file.

Public Member Functions

Public Attributes

Control coordinates

Detailed Description

template<dataobject_types TYPE> class ExportCSVField< TYPE >

Exports SoS field data to a CSV text file. When determining the number of designs and quantities to be exported, the method only considers those type objects which are part of See also ExportCSVField::field_data. Hence one can select the quantities to be exported. Currently, the exported CSV format contains 2 header lines and a Data block (for this example a comma has been chosen as delimiter):
  1. the quantity name in the first line
  2. the ID’s followed by the design idents in the second line
    The part-ID will be exported only in case of several part definitions whereas a type-master-ID will be written as needed, i.e. for integration point data export 3.-* the data in all subsequent lines till EOF(!)

Constructor & Destructor Documentation

ExportCSVField()

Default constructor initializing all member variables to valid defaults. Parameters Exceptions

Member Function Documentation

check()

virtual inherited Checks some settings/preperations. Exceptions

save()

virtual Exports all data to the given csv output file. If all member variables are empty all objects in the database will be exported. Otherwise the member variables acts as filter and only listed data will be extracted out of the database given and exported to the CSV file output_file given Parameters Exceptions Implements ExportCSV.

Member Data Documentation

output_file

inherited The name of the output file. Must be non-empty. Several modes in several situations are supported:

output_order

A data object key vector used to define a output order different from the filter ones. Defines the data output order written after other optional data like indices and coordinates The size of the output_order container may be different from the size of the data type dependent filter given. Even the IDs in the output_order container given may be missing in one or all data type filters. If the size of the output_order container is:
  • smaller than the size of all unique ID’s of the data type filter given, than the filter ID’s matching the ID’s in the output_order will be reorderd as defined by the output_order container. ID’s that exist in the filter only are silently appended.
  • bigger than the size of all unique ID’s of the data type filter given, than the filter ID’s matching the ID’s in the output_order will be reorderd as defined by the output_order container. ID’s that exist in the output_order container only are ignored.
  • zero, if the output_order container is empty, than the data output order is defined by the return values of the filter iterators If the output_order vector contains number entries than only the first match will be written.