2 * Grace - GRaphing, Advanced Computation and Exploration of data
4 * Home page: http://plasma-gate.weizmann.ac.il/Grace/
6 * Copyright (c) 1991-1995 Paul J Turner, Portland, OR
7 * Copyright (c) 1996-2002 Grace Development Team
9 * Maintained by Evgeny Stambulchik
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
40 #define FFORMAT_NUMBER 0
41 #define FFORMAT_STRING 1
42 #define FFORMAT_DATE 2
44 typedef struct _ss_data
53 double *allocate_index_data(int nrows
);
54 double *allocate_mesh(double start
, double stop
, int len
);
56 void set_blockdata(ss_data
*ssd
);
58 int get_blockncols(void);
59 int get_blocknrows(void);
60 int *get_blockformats(void);
62 int realloc_ss_data(ss_data
*ssd
, int nrows
);
63 void free_ss_data(ss_data
*ssd
);
64 int init_ss_data(ss_data
*ssd
, int ncols
, int *formats
, const char *label
);
66 int parse_ss_row(Quark
*pr
, const char *s
, int *nncols
, int *nscols
, int **formats
);
67 int insert_data_row(Quark
*pr
, ss_data
*ssd
, int row
, char *s
);
68 int store_data(Quark
*pr
, ss_data
*ssd
, int load_type
);
70 int create_set_fromblock(Quark
*pset
,
71 int type
, int nc
, int *coli
, int scol
, int autoscale
);
72 char *cols_to_field_string(int nc
, int *cols
, int scol
);
73 int field_string_to_cols(const char *fs
, int *nc
, int **cols
, int *scol
);
75 #endif /* __SSDATA_H_ */