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 |
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_ls_mat5_h) |
|
24 #define octave_ls_mat5_h 1 |
|
25 |
|
26 enum mat5_data_type |
|
27 { |
|
28 miINT8 = 1, // 8 bit signed |
|
29 miUINT8, // 8 bit unsigned |
|
30 miINT16, // 16 bit signed |
|
31 miUINT16, // 16 bit unsigned |
|
32 miINT32, // 32 bit signed |
|
33 miUINT32, // 32 bit unsigned |
|
34 miSINGLE, // IEEE 754 single precision float |
|
35 miRESERVE1, |
|
36 miDOUBLE, // IEEE 754 double precision float |
|
37 miRESERVE2, |
|
38 miRESERVE3, |
|
39 miINT64, // 64 bit signed |
|
40 miUINT64, // 64 bit unsigned |
|
41 miMATRIX // MATLAB array |
|
42 }; |
|
43 |
|
44 extern int |
|
45 read_mat5_binary_file_header (std::istream& is, bool& swap, |
|
46 bool quiet = false); |
|
47 extern std::string |
|
48 read_mat5_binary_element (std::istream& is, const std::string& filename, |
|
49 bool swap, bool& global, octave_value& tc); |
|
50 extern bool |
|
51 save_mat5_binary_element (std::ostream& os, |
|
52 const octave_value& tc, const std::string& name, |
|
53 bool mark_as_global, bool save_as_floats); |
|
54 |
|
55 #endif |
|
56 |
|
57 /* |
|
58 ;;; Local Variables: *** |
|
59 ;;; mode: C++ *** |
|
60 ;;; End: *** |
|
61 */ |
|
62 |