2081
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
2081
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_octave_procstream_h) |
|
24 #define octave_octave_procstream_h 1 |
|
25 |
|
26 #include "oct-stdstrm.h" |
|
27 |
|
28 class |
|
29 octave_iprocstream : public octave_istdiostream |
|
30 { |
|
31 public: |
|
32 |
|
33 octave_iprocstream (const string& n, |
|
34 ios::openmode arg_md = ios::in, |
2317
|
35 oct_mach_info::float_format flt_fmt = |
|
36 oct_mach_info::native); |
2081
|
37 |
3340
|
38 static octave_stream |
|
39 create (const string& n, ios::openmode arg_md = ios::in, |
|
40 oct_mach_info::float_format flt_fmt = oct_mach_info::native); |
|
41 |
|
42 protected: |
|
43 |
2081
|
44 ~octave_iprocstream (void); |
|
45 |
|
46 private: |
|
47 |
|
48 // No copying! |
|
49 |
|
50 octave_iprocstream (const octave_iprocstream&); |
|
51 |
|
52 octave_iprocstream& operator = (const octave_iprocstream&); |
|
53 }; |
|
54 |
|
55 class |
|
56 octave_oprocstream : public octave_ostdiostream |
|
57 { |
|
58 public: |
|
59 |
|
60 octave_oprocstream (const string& n, |
2317
|
61 ios::openmode arg_md = ios::out, |
|
62 oct_mach_info::float_format flt_fmt = |
|
63 oct_mach_info::native); |
2081
|
64 |
3340
|
65 static octave_stream |
|
66 create (const string& n, ios::openmode arg_md = ios::out, |
|
67 oct_mach_info::float_format flt_fmt = oct_mach_info::native); |
|
68 |
|
69 protected: |
|
70 |
2081
|
71 ~octave_oprocstream (void); |
|
72 |
|
73 private: |
|
74 |
|
75 // No copying! |
|
76 |
|
77 octave_oprocstream (const octave_oprocstream&); |
|
78 |
|
79 octave_oprocstream& operator = (const octave_oprocstream&); |
|
80 }; |
|
81 |
|
82 #endif |
|
83 |
|
84 /* |
|
85 ;;; Local Variables: *** |
|
86 ;;; mode: C++ *** |
|
87 ;;; End: *** |
|
88 */ |