Mercurial > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
4325:f30803e587ac | 4326:1cae4472c624 |
---|---|
65 void | 65 void |
66 octave_file::print_raw (std::ostream& os, bool) const | 66 octave_file::print_raw (std::ostream& os, bool) const |
67 { | 67 { |
68 indent (os); os << "{"; newline (os); | 68 indent (os); os << "{"; newline (os); |
69 | 69 |
70 if (stream) | 70 increment_indent_level (); |
71 { | |
72 increment_indent_level (); | |
73 | 71 |
74 std::string name = stream.name (); | 72 indent (os); |
75 std::string mode = octave_stream::mode_as_string (stream.mode ()); | 73 os << "id = " << number; |
76 std::string arch | 74 newline (os); |
77 = oct_mach_info::float_format_as_string (stream.float_format ()); | |
78 std::string status = stream.is_open () ? "open" : "closed"; | |
79 | 75 |
80 indent (os); os << "id = " << number; newline (os); | 76 indent (os); |
81 indent (os); os << "name = " << name; newline (os); | 77 os << "name = " << stream.name (); |
82 indent (os); os << "mode = " << mode; newline (os); | 78 newline (os); |
83 indent (os); os << "arch = " << arch; newline (os); | |
84 indent (os); os << "status = " << status; newline (os); | |
85 | 79 |
86 decrement_indent_level (); | 80 indent (os); |
87 } | 81 os << "mode = " << octave_stream::mode_as_string (stream.mode ()); |
82 newline (os); | |
83 | |
84 indent (os); | |
85 os << "arch = " | |
86 << oct_mach_info::float_format_as_string (stream.float_format ()); | |
87 newline (os); | |
88 | |
89 indent (os); | |
90 os << "status = " << stream.is_open () ? "open" : "closed"; | |
91 newline (os); | |
92 | |
93 decrement_indent_level (); | |
88 | 94 |
89 indent (os); os << "}"; | 95 indent (os); os << "}"; |
90 } | 96 } |
91 | 97 |
92 bool | 98 bool |