comparison src/oct-stream.cc @ 4326:1cae4472c624

[project @ 2003-02-15 23:14:47 by jwe]
author jwe
date Sat, 15 Feb 2003 23:14:47 +0000
parents 1b3804420b1b
children 3dfdbcaf4582
comparison
equal deleted inserted replaced
4325:f30803e587ac 4326:1cae4472c624
3159 3159
3160 for (int i = 0; i < curr_len; i++) 3160 for (int i = 0; i < curr_len; i++)
3161 { 3161 {
3162 octave_stream os = list(i); 3162 octave_stream os = list(i);
3163 3163
3164 if (os) 3164 buf << " "
3165 { 3165 << std::setiosflags (std::ios::right)
3166 std::string mode = octave_stream::mode_as_string (os.mode ()); 3166 << std::setw (4) << i << " "
3167 3167 << std::setiosflags (std::ios::left)
3168 std::string arch = 3168 << std::setw (3)
3169 oct_mach_info::float_format_as_string (os.float_format ()); 3169 << octave_stream::mode_as_string (os.mode ())
3170 3170 << " "
3171 std::string name = os.name (); 3171 << std::setw (9)
3172 3172 << oct_mach_info::float_format_as_string (os.float_format ())
3173 buf << " " 3173 << " "
3174 << std::setiosflags (std::ios::right) 3174 << os.name () << "\n";
3175 << std::setw (4) << i << " "
3176 << std::setiosflags (std::ios::left)
3177 << std::setw (3) << mode.c_str () << " "
3178 << std::setw (9) << arch.c_str () << " "
3179 << name << "\n";
3180 }
3181 } 3175 }
3182 3176
3183 buf << "\n" << OSSTREAM_ENDS; 3177 buf << "\n" << OSSTREAM_ENDS;
3184 3178
3185 retval = OSSTREAM_STR (buf); 3179 retval = OSSTREAM_STR (buf);