VTK
9.1.0
Common
Core
vtkOStrStreamWrapper.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkOStrStreamWrapper.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
27
#ifndef vtkOStrStreamWrapper_h
28
#define vtkOStrStreamWrapper_h
29
30
#include "vtkCommonCoreModule.h"
31
32
#ifndef VTK_SYSTEM_INCLUDES_INSIDE
33
Do_not_include_vtkOStrStreamWrapper_directly_vtkSystemIncludes_includes_it
;
34
#endif
35
36
class
VTKCOMMONCORE_EXPORT
vtkOStrStreamWrapper
:
public
vtkOStreamWrapper
37
{
38
public
:
42
vtkOStrStreamWrapper
();
43
47
~vtkOStrStreamWrapper
()
override
;
48
54
char
*
str
();
55
60
vtkOStrStreamWrapper
*
rdbuf
();
61
63
67
void
freeze
();
68
void
freeze
(
int
);
70
71
protected
:
72
// The pointer returned by str().
73
char
*
Result
;
74
75
// Whether the caller of str() owns the memory.
76
int
Frozen
;
77
78
private
:
79
vtkOStrStreamWrapper
(
const
vtkOStrStreamWrapper
& r) =
delete
;
80
vtkOStrStreamWrapper
& operator=(
const
vtkOStrStreamWrapper
&) =
delete
;
81
};
82
83
#endif
84
// VTK-HeaderTest-Exclude: vtkOStrStreamWrapper.h
vtkOStrStreamWrapper::Frozen
int Frozen
Definition:
vtkOStrStreamWrapper.h:76
vtkOStrStreamWrapper::freeze
void freeze()
Set whether the memory is frozen.
vtkOStrStreamWrapper::~vtkOStrStreamWrapper
~vtkOStrStreamWrapper() override
Destructor frees all used memory.
vtkOStrStreamWrapper::str
char * str()
Get the string that has been written.
vtkOStrStreamWrapper::rdbuf
vtkOStrStreamWrapper * rdbuf()
Returns a pointer to this class.
vtkOStrStreamWrapper::Result
char * Result
Definition:
vtkOStrStreamWrapper.h:73
vtkOStrStreamWrapper
Wrapper for ostrstream.
Definition:
vtkOStrStreamWrapper.h:37
vtkOStrStreamWrapper::vtkOStrStreamWrapper
vtkOStrStreamWrapper()
Constructor.
vtkOStrStreamWrapper::freeze
void freeze(int)
Set whether the memory is frozen.
Do_not_include_vtkOStrStreamWrapper_directly_vtkSystemIncludes_includes_it
Do_not_include_vtkOStrStreamWrapper_directly_vtkSystemIncludes_includes_it
Definition:
vtkOStrStreamWrapper.h:33
vtkOStreamWrapper
Wrapper for C++ ostream.
Definition:
vtkOStreamWrapper.h:45
Generated on Fri Nov 5 2021 00:10:56 for VTK by
1.8.20