Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Common/vtkOStrStreamWrapper.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkOStrStreamWrapper.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00030 #ifndef __vtkOStrStreamWrapper_h 00031 #define __vtkOStrStreamWrapper_h 00032 00033 #ifndef __VTK_SYSTEM_INCLUDES__INSIDE 00034 Do_not_include_vtkOStrStreamWrapper_directly__vtkSystemIncludes_includes_it; 00035 #endif 00036 00037 class VTK_COMMON_EXPORT vtkOStrStreamWrapper: public vtkOStreamWrapper 00038 { 00039 public: 00041 vtkOStrStreamWrapper(); 00042 00044 ~vtkOStrStreamWrapper(); 00045 00049 char* str(); 00050 00053 vtkOStrStreamWrapper* rdbuf(); 00054 00056 00058 void freeze(); 00059 void freeze(int); 00061 protected: 00062 // The pointer returned by str(). 00063 char* Result; 00064 00065 // Whether the caller of str() owns the memory. 00066 int Frozen; 00067 private: 00068 vtkOStrStreamWrapper(const vtkOStrStreamWrapper& r); // Not Implemented. 00069 vtkOStrStreamWrapper& operator=(const vtkOStrStreamWrapper&); // Not Implemented. 00070 }; 00071 00072 #endif