606
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
606
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
7016
|
9 Free Software Foundation; either version 3 of the License, or (at your |
|
10 option) any later version. |
606
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
7016
|
18 along with Octave; see the file COPYING. If not, see |
|
19 <http://www.gnu.org/licenses/>. |
606
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_load_save_h) |
|
24 #define octave_load_save_h 1 |
|
25 |
3503
|
26 #include <iostream> |
|
27 |
|
28 #include <string> |
1738
|
29 |
2086
|
30 class octave_value; |
606
|
31 |
4329
|
32 enum load_save_format |
|
33 { |
|
34 LS_ASCII, |
|
35 LS_BINARY, |
|
36 LS_MAT_ASCII, |
5938
|
37 LS_MAT_ASCII_LONG, |
4329
|
38 LS_MAT_BINARY, |
|
39 LS_MAT5_BINARY, |
5269
|
40 LS_MAT7_BINARY, |
4329
|
41 #ifdef HAVE_HDF5 |
|
42 LS_HDF5, |
|
43 #endif /* HAVE_HDF5 */ |
|
44 LS_UNKNOWN |
|
45 }; |
|
46 |
4791
|
47 extern void dump_octave_core (void); |
4329
|
48 |
|
49 extern int |
|
50 read_binary_file_header (std::istream& is, bool& swap, |
|
51 oct_mach_info::float_format& flt_fmt, |
|
52 bool quiet = false); |
606
|
53 |
4329
|
54 extern octave_value |
|
55 do_load (std::istream& stream, const std::string& orig_fname, bool force, |
|
56 load_save_format format, oct_mach_info::float_format flt_fmt, |
4687
|
57 bool list_only, bool swap, bool verbose, |
4329
|
58 const string_vector& argv, int argv_idx, int argc, int nargout); |
|
59 |
|
60 extern void |
|
61 do_save (std::ostream& os, symbol_record *sr, load_save_format fmt, |
6974
|
62 bool save_as_floats); |
4329
|
63 |
|
64 extern void |
|
65 write_header (std::ostream& os, load_save_format format); |
1380
|
66 |
606
|
67 #endif |
|
68 |
|
69 /* |
|
70 ;;; Local Variables: *** |
|
71 ;;; mode: C++ *** |
|
72 ;;; End: *** |
|
73 */ |