VTK
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
35 #endif
36 
37 class VTKCOMMONCORE_EXPORT vtkOStrStreamWrapper: public vtkOStreamWrapper
38 {
39 public:
44 
48  ~vtkOStrStreamWrapper() 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) = delete;
80  vtkOStrStreamWrapper& operator=(const vtkOStrStreamWrapper&) = delete;
81 };
82 
83 #endif
84 // VTK-HeaderTest-Exclude: vtkOStrStreamWrapper.h
Wrapper for ostrstream.
Do_not_include_vtkOStrStreamWrapper_directly_vtkSystemIncludes_includes_it
Wrapper for C++ ostream.