GNU Octave  9.1.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-2024 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 // Note: Even though these classes are now inside the octave namespace,
37 // we can't rename them to iprocstream and oprocstream because we
38 // already have classes with those names (see procstream.h). We need to
39 // find a way to resolve this naming issue.
40 
42 
43 class
45 {
46 public:
47 
48  octave_iprocstream (const std::string& n,
49  std::ios::openmode arg_md = std::ios::in,
52  const std::string& encoding = "utf-8");
53 
54  OCTAVE_DISABLE_CONSTRUCT_COPY_MOVE (octave_iprocstream)
55 
56  static octave::stream
57  create (const std::string& n, std::ios::openmode arg_md = std::ios::in,
60  const std::string& encoding = "utf-8");
61 
62 protected:
63 
65 };
66 
67 class
68 octave_oprocstream : public octave::stdiostream
69 {
70 public:
71 
72  octave_oprocstream (const std::string& n,
73  std::ios::openmode arg_md = std::ios::out,
76  const std::string& encoding = "utf-8");
77 
78  OCTAVE_DISABLE_CONSTRUCT_COPY_MOVE (octave_oprocstream)
79 
80  static octave::stream
81  create (const std::string& n, std::ios::openmode arg_md = std::ios::out,
84  const std::string& encoding = "utf-8");
85 
86 protected:
87 
89 };
90 
91 OCTAVE_END_NAMESPACE(octave)
92 
93 #endif
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
float_format native_float_format()
Definition: mach-info.cc:67
float_format
Definition: mach-info.h:38
octave_idx_type n
Definition: mx-inlines.cc:761