VTK  9.1.0
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
34#endif
35
36class VTKCOMMONCORE_EXPORT vtkOStrStreamWrapper : public vtkOStreamWrapper
37{
38public:
43
48
54 char* str();
55
61
63
67 void freeze();
68 void freeze(int);
70
71protected:
72 // The pointer returned by str().
73 char* Result;
74
75 // Whether the caller of str() owns the memory.
76 int Frozen;
77
78private:
80 vtkOStrStreamWrapper& operator=(const vtkOStrStreamWrapper&) = delete;
81};
82
83#endif
84// VTK-HeaderTest-Exclude: vtkOStrStreamWrapper.h
Wrapper for ostrstream.
~vtkOStrStreamWrapper() override
Destructor frees all used memory.
void freeze(int)
Set whether the memory is frozen.
char * str()
Get the string that has been written.
void freeze()
Set whether the memory is frozen.
vtkOStrStreamWrapper * rdbuf()
Returns a pointer to this class.
vtkOStrStreamWrapper()
Constructor.
Wrapper for C++ ostream.
Do_not_include_vtkOStrStreamWrapper_directly_vtkSystemIncludes_includes_it