GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
oct-prcstrm.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1996-2018 John W. Eaton
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
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License 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, see
19 <https://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if ! defined (octave_oct_prcstrm_h)
24 #define octave_oct_prcstrm_h 1
25 
26 #include "octave-config.h"
27 
28 #include "oct-stdstrm.h"
29 
30 // FIXME: why don't these classes use iprocstream and oprocstream,
31 // which in turn use the octave_procbuf class?
32 
33 class
35 {
36 public:
37 
39  std::ios::openmode arg_md = std::ios::in,
42 
43  // No copying!
44 
45  octave_iprocstream (const octave_iprocstream&) = delete;
46 
47  octave_iprocstream& operator = (const octave_iprocstream&) = delete;
48 
49  static octave::stream
50  create (const std::string& n, std::ios::openmode arg_md = std::ios::in,
53 
54 protected:
55 
56  ~octave_iprocstream (void);
57 };
58 
59 class
61 {
62 public:
63 
65  std::ios::openmode arg_md = std::ios::out,
68 
69  // No copying!
70 
71  octave_oprocstream (const octave_oprocstream&) = delete;
72 
73  octave_oprocstream& operator = (const octave_oprocstream&) = delete;
74 
75  static octave::stream
76  create (const std::string& n, std::ios::openmode arg_md = std::ios::out,
79 
80 protected:
81 
82  ~octave_oprocstream (void);
83 };
84 
85 #endif
octave::mach_info::float_format flt_fmt
Definition: load-save.cc:736
float_format native_float_format(void)
Definition: mach-info.cc:62
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
Definition: utils.cc:888