GNU Octave  6.2.0
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-2021 The Octave Project Developers
4 //
5 // See the file COPYRIGHT.md in the top-level directory of this
6 // distribution or <https://octave.org/copyright/>.
7 //
8 // This file is part of Octave.
9 //
10 // Octave is free software: you can redistribute it and/or modify it
11 // under the terms of the GNU General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // Octave is distributed in the hope that it will be useful, but
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with Octave; see the file COPYING. If not, see
22 // <https://www.gnu.org/licenses/>.
23 //
24 ////////////////////////////////////////////////////////////////////////
25 
26 #if ! defined (octave_oct_prcstrm_h)
27 #define octave_oct_prcstrm_h 1
28 
29 #include "octave-config.h"
30 
31 #include "oct-stdstrm.h"
32 
33 // FIXME: why don't these classes use iprocstream and oprocstream,
34 // which in turn use the octave_procbuf class?
35 
36 class
38 {
39 public:
40 
41  octave_iprocstream (const std::string& n,
42  std::ios::openmode arg_md = std::ios::in,
45  const std::string& encoding = "utf-8");
46 
47  // No copying!
48 
50 
51  octave_iprocstream& operator = (const octave_iprocstream&) = delete;
52 
53  static octave::stream
54  create (const std::string& n, std::ios::openmode arg_md = std::ios::in,
57  const std::string& encoding = "utf-8");
58 
59 protected:
60 
61  ~octave_iprocstream (void);
62 };
63 
64 class
66 {
67 public:
68 
69  octave_oprocstream (const std::string& n,
70  std::ios::openmode arg_md = std::ios::out,
73  const std::string& encoding = "utf-8");
74 
75  // No copying!
76 
78 
79  octave_oprocstream& operator = (const octave_oprocstream&) = delete;
80 
81  static octave::stream
82  create (const std::string& n, std::ios::openmode arg_md = std::ios::out,
85  const std::string& encoding = "utf-8");
86 
87 protected:
88 
89  ~octave_oprocstream (void);
90 };
91 
92 #endif
octave_iprocstream(const octave_iprocstream &)=delete
octave_oprocstream(const octave_oprocstream &)=delete
octave_idx_type n
Definition: mx-inlines.cc:753
float_format native_float_format(void)
Definition: mach-info.cc:65