Mercurial > octave
diff libinterp/corefcn/procstream.h @ 29991:3988112c7116
move i/o stream classes inside octave namespace
* c-file-ptr-stream.h, c-file-ptr-stream.cc, file-io.cc, oct-fstrm.cc,
oct-fstrm.h, oct-iostrm.cc, oct-iostrm.h, oct-prcstrm.cc,
oct-prcstrm.h, oct-procbuf.cc, oct-procbuf.h, oct-stdstrm.h,
oct-stream.cc, oct-strstrm.cc, oct-strstrm.h, procstream.cc,
procstream.h: Move classes inside octave namespace. Change all
uses. Provide deprecated typedefs to preserve old names where
possible.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 17 Aug 2021 11:17:36 -0400 |
parents | 0a5b15007766 |
children | 796f54d4ddbf |
line wrap: on
line diff
--- a/libinterp/corefcn/procstream.h Mon Aug 16 22:28:30 2021 -0400 +++ b/libinterp/corefcn/procstream.h Tue Aug 17 11:17:36 2021 -0400 @@ -35,6 +35,8 @@ #include "oct-procbuf.h" +OCTAVE_NAMESPACE_BEGIN + class OCTINTERP_API procstreambase : virtual public std::ios @@ -66,7 +68,7 @@ private: - octave_procbuf m_pb; + procbuf m_pb; void pb_init (void) { @@ -183,4 +185,22 @@ procstream& operator = (const procstream&); }; +OCTAVE_NAMESPACE_END + +#if defined (OCTAVE_PROVIDE_DEPRECATED_SYMBOLS) + +OCTAVE_DEPRECATED (7, "use 'octave::procstreambase' instead") +typedef octave::procstreambase procstreambase; + +OCTAVE_DEPRECATED (7, "use 'octave::iprocstream' instead") +typedef octave::iprocstream iprocstream; + +OCTAVE_DEPRECATED (7, "use 'octave::oprocstream' instead") +typedef octave::oprocstream oprocstream; + +OCTAVE_DEPRECATED (7, "use 'octave::procstream' instead") +typedef octave::procstream procstream; + #endif + +#endif