4634
|
1 /* |
|
2 |
|
3 Copyright (C) 2003 John W. Eaton |
|
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. |
4634
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_ls_mat5_h) |
|
25 #define octave_ls_mat5_h 1 |
|
26 |
|
27 enum mat5_data_type |
|
28 { |
|
29 miINT8 = 1, // 8 bit signed |
|
30 miUINT8, // 8 bit unsigned |
|
31 miINT16, // 16 bit signed |
|
32 miUINT16, // 16 bit unsigned |
|
33 miINT32, // 32 bit signed |
|
34 miUINT32, // 32 bit unsigned |
|
35 miSINGLE, // IEEE 754 single precision float |
|
36 miRESERVE1, |
|
37 miDOUBLE, // IEEE 754 double precision float |
|
38 miRESERVE2, |
|
39 miRESERVE3, |
|
40 miINT64, // 64 bit signed |
|
41 miUINT64, // 64 bit unsigned |
5269
|
42 miMATRIX, // MATLAB array |
|
43 miCOMPRESSED, // Compressed data |
|
44 miUTF8, // Unicode UTF-8 Encoded Character Data |
|
45 miUTF16, // Unicode UTF-16 Encoded Character Data |
|
46 miUTF32, // Unicode UTF-32 Encoded Character Data |
4634
|
47 }; |
|
48 |
|
49 extern int |
|
50 read_mat5_binary_file_header (std::istream& is, bool& swap, |
|
51 bool quiet = false); |
|
52 extern std::string |
|
53 read_mat5_binary_element (std::istream& is, const std::string& filename, |
|
54 bool swap, bool& global, octave_value& tc); |
|
55 extern bool |
|
56 save_mat5_binary_element (std::ostream& os, |
|
57 const octave_value& tc, const std::string& name, |
5269
|
58 bool mark_as_global, bool mat7_format, |
|
59 bool save_as_floats, bool compressing = false); |
4634
|
60 |
|
61 #endif |
|
62 |
|
63 /* |
|
64 ;;; Local Variables: *** |
|
65 ;;; mode: C++ *** |
|
66 ;;; End: *** |
|
67 */ |
|
68 |