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 =========================================================================*/
29 #ifndef vtkOStrStreamWrapper_h
30 #define vtkOStrStreamWrapper_h
31 
32 #ifndef __VTK_SYSTEM_INCLUDES__INSIDE
34 #endif
35 
37 {
38 public:
41 
44 
48  char* str();
49 
52  vtkOStrStreamWrapper* rdbuf();
53 
55 
57  void freeze();
58  void freeze(int);
59 protected:
60  // The pointer returned by str().
61  char* Result;
63 
64  // Whether the caller of str() owns the memory.
65  int Frozen;
66 private:
67  vtkOStrStreamWrapper(const vtkOStrStreamWrapper& r); // Not Implemented.
68  vtkOStrStreamWrapper& operator=(const vtkOStrStreamWrapper&); // Not Implemented.
69 };
70 
71 #endif
72 // VTK-HeaderTest-Exclude: vtkOStrStreamWrapper.h
Wrapper for ostrstream. Internal VTK use only.
Do_not_include_vtkOStrStreamWrapper_directly__vtkSystemIncludes_includes_it
#define VTKCOMMONCORE_EXPORT
Wrapper for C++ ostream. Internal VTK use only.