comparison liboctave/data-conv.h @ 10312:cbc402e64d83

untabify liboctave header files
author John W. Eaton <jwe@octave.org>
date Thu, 11 Feb 2010 12:14:48 -0500
parents 4c0cdbe0acca
children d4d13389c957
comparison
equal deleted inserted replaced
10311:a217e1d74353 10312:cbc402e64d83
62 }; 62 };
63 63
64 static data_type string_to_data_type (const std::string& s); 64 static data_type string_to_data_type (const std::string& s);
65 65
66 static void string_to_data_type (const std::string& s, int& block_size, 66 static void string_to_data_type (const std::string& s, int& block_size,
67 data_type& input_type, 67 data_type& input_type,
68 data_type& output_type); 68 data_type& output_type);
69 69
70 static void string_to_data_type (const std::string& s, int& block_size, 70 static void string_to_data_type (const std::string& s, int& block_size,
71 data_type& output_type); 71 data_type& output_type);
72 72
73 static std::string data_type_as_string (data_type dt); 73 static std::string data_type_as_string (data_type dt);
74 }; 74 };
75 75
76 // Add new entries to the end of this enum, otherwise Octave will not 76 // Add new entries to the end of this enum, otherwise Octave will not
91 LS_LONG = 9 91 LS_LONG = 9
92 }; 92 };
93 93
94 extern OCTAVE_API void 94 extern OCTAVE_API void
95 do_double_format_conversion (void *data, int len, 95 do_double_format_conversion (void *data, int len,
96 oct_mach_info::float_format from_fmt, 96 oct_mach_info::float_format from_fmt,
97 oct_mach_info::float_format to_fmt 97 oct_mach_info::float_format to_fmt
98 = oct_mach_info::native_float_format ()); 98 = oct_mach_info::native_float_format ());
99 99
100 extern OCTAVE_API void 100 extern OCTAVE_API void
101 do_float_format_conversion (void *data, int len, 101 do_float_format_conversion (void *data, int len,
102 oct_mach_info::float_format from_fmt, 102 oct_mach_info::float_format from_fmt,
103 oct_mach_info::float_format to_fmt 103 oct_mach_info::float_format to_fmt
104 = oct_mach_info::native_float_format ()); 104 = oct_mach_info::native_float_format ());
105 105
106 extern OCTAVE_API void 106 extern OCTAVE_API void
107 do_float_format_conversion (void *data, size_t sz, int len, 107 do_float_format_conversion (void *data, size_t sz, int len,
108 oct_mach_info::float_format from_fmt, 108 oct_mach_info::float_format from_fmt,
109 oct_mach_info::float_format to_fmt 109 oct_mach_info::float_format to_fmt
110 = oct_mach_info::native_float_format ()); 110 = oct_mach_info::native_float_format ());
111 111
112 extern OCTAVE_API void 112 extern OCTAVE_API void
113 read_doubles (std::istream& is, double *data, save_type type, int len, 113 read_doubles (std::istream& is, double *data, save_type type, int len,
114 bool swap, oct_mach_info::float_format fmt); 114 bool swap, oct_mach_info::float_format fmt);
115 extern OCTAVE_API void 115 extern OCTAVE_API void
116 write_doubles (std::ostream& os, const double *data, save_type type, int len); 116 write_doubles (std::ostream& os, const double *data, save_type type, int len);
117 117
118 extern OCTAVE_API void 118 extern OCTAVE_API void
119 read_floats (std::istream& is, float *data, save_type type, int len, 119 read_floats (std::istream& is, float *data, save_type type, int len,
120 bool swap, oct_mach_info::float_format fmt); 120 bool swap, oct_mach_info::float_format fmt);
121 extern OCTAVE_API void 121 extern OCTAVE_API void
122 write_floats (std::ostream& os, const float *data, save_type type, int len); 122 write_floats (std::ostream& os, const float *data, save_type type, int len);
123 123
124 #endif 124 #endif