Mercurial > hg > octave-nkf
comparison src/oct-stream.h @ 5659:960f4b9a26af
[project @ 2006-03-10 15:35:20 by jwe]
author | jwe |
---|---|
date | Fri, 10 Mar 2006 15:35:21 +0000 |
parents | d24b97246b9b |
children | 7ba9ad1fec11 |
comparison
equal
deleted
inserted
replaced
5658:7b45fda21557 | 5659:960f4b9a26af |
---|---|
589 private: | 589 private: |
590 | 590 |
591 // The actual representation of this stream. | 591 // The actual representation of this stream. |
592 octave_base_stream *rep; | 592 octave_base_stream *rep; |
593 | 593 |
594 bool stream_ok (const std::string& who, bool clear = true, | 594 bool stream_ok (bool clear = true) const |
595 bool warn = true) const; | 595 { |
596 bool retval = true; | |
597 | |
598 if (rep) | |
599 { | |
600 if (clear) | |
601 rep->clear (); | |
602 } | |
603 else | |
604 retval = false; | |
605 | |
606 return retval; | |
607 } | |
596 | 608 |
597 void invalid_operation (const std::string& who, const char *rw) | 609 void invalid_operation (const std::string& who, const char *rw) |
598 { | 610 { |
599 if (rep) | 611 if (rep) |
600 rep->invalid_operation (who, rw); | 612 rep->invalid_operation (who, rw); |