VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Common/Core/vtkOStrStreamWrapper.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkOStrStreamWrapper.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00029 #ifndef vtkOStrStreamWrapper_h
00030 #define vtkOStrStreamWrapper_h
00031 
00032 #ifndef __VTK_SYSTEM_INCLUDES__INSIDE
00033 Do_not_include_vtkOStrStreamWrapper_directly__vtkSystemIncludes_includes_it;
00034 #endif
00035 
00036 class VTKCOMMONCORE_EXPORT vtkOStrStreamWrapper: public vtkOStreamWrapper
00037 {
00038 public:
00040   vtkOStrStreamWrapper();
00041 
00043   ~vtkOStrStreamWrapper();
00044 
00048   char* str();
00049 
00052   vtkOStrStreamWrapper* rdbuf();
00053 
00055 
00057   void freeze();
00058   void freeze(int);
00059 protected:
00060   // The pointer returned by str().
00061   char* Result;
00063 
00064   // Whether the caller of str() owns the memory.
00065   int Frozen;
00066 private:
00067   vtkOStrStreamWrapper(const vtkOStrStreamWrapper& r); // Not Implemented.
00068   vtkOStrStreamWrapper& operator=(const vtkOStrStreamWrapper&); // Not Implemented.
00069 };
00070 
00071 #endif
00072 // VTK-HeaderTest-Exclude: vtkOStrStreamWrapper.h