comparison m-toolbox/classes/@ltpda_uoh/csvGenerateData.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % CSVGENERATEDATA Default method to convert a ltpda_uoh-object into csv data.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % FUNCTION: csvGenerateData
5 %
6 % DESCRIPTION:
7 %
8 % CALL: [data, pl] = csvGenerateData(ltpda_uoh)
9 %
10 % INPUTS: ltpda_uoh: Input objects
11 %
12 % OUTPUTS: data: Cell array with the data which should should be
13 % written to the file.
14 % pl: Parameter list which contains the description of the
15 % data. The parameter list must contain the following
16 % keys:
17 % 'DESCRIPTION': Description for the file
18 % 'COLUMNS': Meaning of each column seperated by a
19 % comma. For additional information add
20 % this name as a key and a description as
21 % the value. For example:
22 % | key | value
23 % -----------------------
24 % |COLUMNS| 'X1, X2'
25 % | X1 | 'x-axis data'
26 % | X2 | 'y-axis data'
27 %
28 % 'NROWS': Bumber of rows
29 % 'NCOLS': Number of columns
30 % 'OBJECT IDS': UUID of the objects seperated by a comma
31 % 'OBJECT NEAMES': Object names seperated by a comma
32 % 'CREATOR': Creator of the objects
33 %
34 % VERSION: $Id: csvGenerateData.m,v 1.1 2009/07/16 18:22:10 ingo Exp $
35 %
36 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
37
38 function [data, pl] = csvGenerateData(objs)
39 error('### If it is necessary to export a %s-object then add a change request to MANTIS. https://ed.fbk.eu/ltpda/mantis/login_page.php', class(objs));
40 end
41
42 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
43 %
44 % FUNCTION: getDefaultPlist
45 %
46 % DESCRIPTION: Get Default Plist
47 %
48 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
49
50 function plo = getDefaultPlist()
51 plo = plist(...
52 'DESCRIPTION', '', ...
53 'COLUMNS', '', ...
54 'NROWS', -1, ...
55 'NCOLS', -1, ...
56 'OBJECT IDS', '', ...
57 'OBJECT NEAMES', '', ...
58 'CREATOR', '');
59 end
60
61