Mercurial > hg > octave-nkf
diff src/ov-file.cc @ 4326:1cae4472c624
[project @ 2003-02-15 23:14:47 by jwe]
author | jwe |
---|---|
date | Sat, 15 Feb 2003 23:14:47 +0000 |
parents | ccfdb55c8156 |
children | d44675070f1a |
line wrap: on
line diff
--- a/src/ov-file.cc +++ b/src/ov-file.cc @@ -67,24 +67,30 @@ { indent (os); os << "{"; newline (os); - if (stream) - { - increment_indent_level (); + increment_indent_level (); + + indent (os); + os << "id = " << number; + newline (os); + + indent (os); + os << "name = " << stream.name (); + newline (os); - std::string name = stream.name (); - std::string mode = octave_stream::mode_as_string (stream.mode ()); - std::string arch - = oct_mach_info::float_format_as_string (stream.float_format ()); - std::string status = stream.is_open () ? "open" : "closed"; + indent (os); + os << "mode = " << octave_stream::mode_as_string (stream.mode ()); + newline (os); - indent (os); os << "id = " << number; newline (os); - indent (os); os << "name = " << name; newline (os); - indent (os); os << "mode = " << mode; newline (os); - indent (os); os << "arch = " << arch; newline (os); - indent (os); os << "status = " << status; newline (os); + indent (os); + os << "arch = " + << oct_mach_info::float_format_as_string (stream.float_format ()); + newline (os); - decrement_indent_level (); - } + indent (os); + os << "status = " << stream.is_open () ? "open" : "closed"; + newline (os); + + decrement_indent_level (); indent (os); os << "}"; }