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):-
the quantity name in the first line
-
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()
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:
-
The string points to a non-existing FS item:
- The Settings class tries to split up the path given in its components: parent_path, filename (boost::filesystem::stem) and file extension (boost::filesystem::extension) as described in the underlying FS library http://www.boost.org/doc/libs/1_53_0/libs/filesystem/doc/reference.html#Path-decomposition-table
- Non given components will be replaced by default ones and created if neccessary
output_order
- 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.