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 =========================================================================*/
26 #ifndef __vtkOStrStreamWrapper_h
27 #define __vtkOStrStreamWrapper_h
28 
29 #ifndef __VTK_SYSTEM_INCLUDES__INSIDE
31 #endif
32 
34 {
35 public:
38 
41 
45  char* str();
46 
49  vtkOStrStreamWrapper* rdbuf();
50 
52 
54  void freeze();
55  void freeze(int);
56 protected:
57  // The pointer returned by str().
58  char* Result;
60 
61  // Whether the caller of str() owns the memory.
62  int Frozen;
63 private:
64  vtkOStrStreamWrapper(const vtkOStrStreamWrapper& r); // Not Implemented.
65  vtkOStrStreamWrapper& operator=(const vtkOStrStreamWrapper&); // Not Implemented.
66 };
67 
68 #endif
Wrapper for ostrstream. Internal VTK use only.
Do_not_include_vtkOStrStreamWrapper_directly__vtkSystemIncludes_includes_it
Wrapper for C++ ostream. Internal VTK use only.
#define VTK_COMMON_EXPORT