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 |
1315
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
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, |
|
37 LS_MAT_BINARY, |
|
38 LS_MAT5_BINARY, |
|
39 #ifdef HAVE_HDF5 |
|
40 LS_HDF5, |
|
41 #endif /* HAVE_HDF5 */ |
|
42 LS_UNKNOWN |
|
43 }; |
|
44 |
3738
|
45 extern bool |
|
46 save_ascii_data_for_plotting (std::ostream& os, const octave_value& t, |
|
47 const std::string& name = std::string ()); |
606
|
48 |
4329
|
49 extern bool |
|
50 save_three_d (std::ostream& os, const octave_value& t, |
|
51 bool parametric = false); |
|
52 |
|
53 extern void |
|
54 save_user_variables (void); |
|
55 |
|
56 extern int |
|
57 read_binary_file_header (std::istream& is, bool& swap, |
|
58 oct_mach_info::float_format& flt_fmt, |
|
59 bool quiet = false); |
606
|
60 |
4329
|
61 extern octave_value |
|
62 do_load (std::istream& stream, const std::string& orig_fname, bool force, |
|
63 load_save_format format, oct_mach_info::float_format flt_fmt, |
4687
|
64 bool list_only, bool swap, bool verbose, |
4329
|
65 const string_vector& argv, int argv_idx, int argc, int nargout); |
|
66 |
|
67 extern void |
|
68 do_save (std::ostream& os, symbol_record *sr, load_save_format fmt, |
|
69 int save_as_floats, bool& infnan_warned); |
|
70 |
|
71 extern void |
|
72 write_header (std::ostream& os, load_save_format format); |
1380
|
73 |
606
|
74 #endif |
|
75 |
|
76 /* |
|
77 ;;; Local Variables: *** |
|
78 ;;; mode: C++ *** |
|
79 ;;; End: *** |
|
80 */ |