VTK
dox
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
=========================================================================*/
30
#ifndef vtkOStrStreamWrapper_h
31
#define vtkOStrStreamWrapper_h
32
33
#ifndef __VTK_SYSTEM_INCLUDES__INSIDE
34
Do_not_include_vtkOStrStreamWrapper_directly__vtkSystemIncludes_includes_it
;
35
#endif
36
37
class
VTKCOMMONCORE_EXPORT
vtkOStrStreamWrapper
:
public
vtkOStreamWrapper
38
{
39
public
:
43
vtkOStrStreamWrapper
();
44
48
~vtkOStrStreamWrapper
() VTK_OVERRIDE;
49
55
char
* str();
56
61
vtkOStrStreamWrapper
* rdbuf();
62
64
68
void
freeze();
69
void
freeze(
int
);
71
72
protected:
73
// The pointer returned by str().
74
char
* Result;
75
76
// Whether the caller of str() owns the memory.
77
int
Frozen;
78
private:
79
vtkOStrStreamWrapper
(const
vtkOStrStreamWrapper
& r) VTK_DELETE_FUNCTION;
80
vtkOStrStreamWrapper
& operator=(const
vtkOStrStreamWrapper
&) VTK_DELETE_FUNCTION;
81
};
82
83
#endif
84
// VTK-HeaderTest-Exclude: vtkOStrStreamWrapper.h
vtkOStrStreamWrapper
Wrapper for ostrstream.
Definition:
vtkOStrStreamWrapper.h:38
vtkOStrStreamWrapper::~vtkOStrStreamWrapper
~vtkOStrStreamWrapper() override
Destructor frees all used memory.
vtkOStrStreamWrapper::vtkOStrStreamWrapper
vtkOStrStreamWrapper()
Constructor.
vtkOStreamWrapper
Wrapper for C++ ostream.
Definition:
vtkOStreamWrapper.h:48
Do_not_include_vtkOStrStreamWrapper_directly__vtkSystemIncludes_includes_it
Do_not_include_vtkOStrStreamWrapper_directly__vtkSystemIncludes_includes_it
Definition:
vtkOStrStreamWrapper.h:34
Generated by
1.9.1