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 |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
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 |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
5307
|
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 02110-1301, USA. |
606
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_load_save_h) |
|
25 #define octave_load_save_h 1 |
|
26 |
3503
|
27 #include <iostream> |
|
28 |
|
29 #include <string> |
1738
|
30 |
2086
|
31 class octave_value; |
606
|
32 |
4329
|
33 enum load_save_format |
|
34 { |
|
35 LS_ASCII, |
|
36 LS_BINARY, |
|
37 LS_MAT_ASCII, |
5938
|
38 LS_MAT_ASCII_LONG, |
4329
|
39 LS_MAT_BINARY, |
|
40 LS_MAT5_BINARY, |
5269
|
41 LS_MAT7_BINARY, |
4329
|
42 #ifdef HAVE_HDF5 |
|
43 LS_HDF5, |
|
44 #endif /* HAVE_HDF5 */ |
|
45 LS_UNKNOWN |
|
46 }; |
|
47 |
4791
|
48 extern void dump_octave_core (void); |
4329
|
49 |
|
50 extern int |
|
51 read_binary_file_header (std::istream& is, bool& swap, |
|
52 oct_mach_info::float_format& flt_fmt, |
|
53 bool quiet = false); |
606
|
54 |
4329
|
55 extern octave_value |
|
56 do_load (std::istream& stream, const std::string& orig_fname, bool force, |
|
57 load_save_format format, oct_mach_info::float_format flt_fmt, |
4687
|
58 bool list_only, bool swap, bool verbose, |
4329
|
59 const string_vector& argv, int argv_idx, int argc, int nargout); |
|
60 |
|
61 extern void |
|
62 do_save (std::ostream& os, symbol_record *sr, load_save_format fmt, |
6974
|
63 bool save_as_floats); |
4329
|
64 |
|
65 extern void |
|
66 write_header (std::ostream& os, load_save_format format); |
1380
|
67 |
606
|
68 #endif |
|
69 |
|
70 /* |
|
71 ;;; Local Variables: *** |
|
72 ;;; mode: C++ *** |
|
73 ;;; End: *** |
|
74 */ |