From fa7c3cb5774b65d53cd5f4cdbb9443ad7e8ac671 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 23 Oct 2013 12:48:05 +0200 Subject: [PATCH] Verwendung von datatype in der Doku deutlicher herausgestellt. --- SL/Helper/Csv.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/SL/Helper/Csv.pm b/SL/Helper/Csv.pm index 1cc0fae5c..2730502b3 100644 --- a/SL/Helper/Csv.pm +++ b/SL/Helper/Csv.pm @@ -446,13 +446,17 @@ in objects. If not given, headers are taken from the first n lines of data, where n is the number of different class types. +In case of multiplexed data the first column must be named 'datatype'. This +name must be given in the header. + Examples: classic data of one type: [ 'name', 'street', 'zipcode', 'city' ] multiplexed data with two different types - [ [ 'ordernumber', 'customer', 'transdate' ], [ 'partnumber', 'qty', 'sellprice' ] ] + [ [ 'datatype', 'ordernumber', 'customer', 'transdate' ], + [ 'datatype', 'partnumber', 'qty', 'sellprice' ] ] =item C [{profile => \%ACCESSORS, class => class, row_ident => ri},] @@ -493,7 +497,8 @@ If C is present, the line will be handed to the new sub of this class, and the return value used instead of the line itself. C is a string to recognize the right profile and class for each data -line in multiplexed data. +line in multiplexed data. It must match the value in the column 'dataype' for +each class. In case of multiplexed data, C and C must be given. Example: -- 2.20.1