annotate src/load-save.h @ 4839:c1cdf2a32cdb ss-2-1-57

[project @ 2004-03-12 19:38:50 by jwe]
author jwe
date Fri, 12 Mar 2004 19:38:50 +0000
parents 62f2fb593455
children a90ce2dc8b1e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
606
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
1 /*
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
2
2847
8b262e771614 [project @ 1997-03-27 16:18:26 by jwe]
jwe
parents: 2799
diff changeset
3 Copyright (C) 1996, 1997 John W. Eaton
606
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
4
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
5 This file is part of Octave.
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
6
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
7 Octave is free software; you can redistribute it and/or modify it
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
8 under the terms of the GNU General Public License as published by the
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
9 Free Software Foundation; either version 2, or (at your option) any
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
10 later version.
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
11
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
12 Octave is distributed in the hope that it will be useful, but WITHOUT
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
15 for more details.
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
16
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
18 along with Octave; see the file COPYING. If not, write to the Free
1315
611d403c7f3d [project @ 1995-06-25 19:56:32 by jwe]
jwe
parents: 1009
diff changeset
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
606
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
20
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
21 */
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
22
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
23 #if !defined (octave_load_save_h)
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
24 #define octave_load_save_h 1
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
25
3503
d14c483b3c12 [project @ 2000-02-01 04:06:07 by jwe]
jwe
parents: 2907
diff changeset
26 #include <iostream>
d14c483b3c12 [project @ 2000-02-01 04:06:07 by jwe]
jwe
parents: 2907
diff changeset
27
d14c483b3c12 [project @ 2000-02-01 04:06:07 by jwe]
jwe
parents: 2907
diff changeset
28 #include <string>
1738
bb9d00aa55fb [project @ 1996-01-12 10:56:22 by jwe]
jwe
parents: 1380
diff changeset
29
2086
bfb775fb6fe8 [project @ 1996-04-25 05:55:19 by jwe]
jwe
parents: 1996
diff changeset
30 class octave_value;
606
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
31
4329
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
32 enum load_save_format
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
33 {
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
34 LS_ASCII,
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
35 LS_BINARY,
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
36 LS_MAT_ASCII,
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
37 LS_MAT_BINARY,
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
38 LS_MAT5_BINARY,
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
39 #ifdef HAVE_HDF5
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
40 LS_HDF5,
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
41 #endif /* HAVE_HDF5 */
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
42 LS_UNKNOWN
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
43 };
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
44
3738
f20c30fa3a8d [project @ 2000-11-17 20:10:22 by jwe]
jwe
parents: 3523
diff changeset
45 extern bool
f20c30fa3a8d [project @ 2000-11-17 20:10:22 by jwe]
jwe
parents: 3523
diff changeset
46 save_ascii_data_for_plotting (std::ostream& os, const octave_value& t,
f20c30fa3a8d [project @ 2000-11-17 20:10:22 by jwe]
jwe
parents: 3523
diff changeset
47 const std::string& name = std::string ());
606
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
48
4329
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
49 extern bool
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
50 save_three_d (std::ostream& os, const octave_value& t,
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
51 bool parametric = false);
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
52
4791
62f2fb593455 [project @ 2004-02-20 18:02:59 by jwe]
jwe
parents: 4687
diff changeset
53 extern void dump_octave_core (void);
4329
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
54
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
55 extern int
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
56 read_binary_file_header (std::istream& is, bool& swap,
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
57 oct_mach_info::float_format& flt_fmt,
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
58 bool quiet = false);
606
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
59
4329
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
60 extern octave_value
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
61 do_load (std::istream& stream, const std::string& orig_fname, bool force,
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
62 load_save_format format, oct_mach_info::float_format flt_fmt,
4687
e95c86d48732 [project @ 2004-01-06 21:53:34 by jwe]
jwe
parents: 4329
diff changeset
63 bool list_only, bool swap, bool verbose,
4329
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
64 const string_vector& argv, int argv_idx, int argc, int nargout);
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
65
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
66 extern void
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
67 do_save (std::ostream& os, symbol_record *sr, load_save_format fmt,
4791
62f2fb593455 [project @ 2004-02-20 18:02:59 by jwe]
jwe
parents: 4687
diff changeset
68 bool save_as_floats, bool& infnan_warned);
4329
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
69
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
70 extern void
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 3738
diff changeset
71 write_header (std::ostream& os, load_save_format format);
1380
79f80c6229be [project @ 1995-09-12 07:03:33 by jwe]
jwe
parents: 1315
diff changeset
72
606
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
73 #endif
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
74
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
75 /*
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
76 ;;; Local Variables: ***
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
77 ;;; mode: C++ ***
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
78 ;;; End: ***
91ab3cfc2376 [project @ 1994-08-13 20:11:17 by jwe]
jwe
parents:
diff changeset
79 */