VTK
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 =========================================================================*/
00026 #ifndef __vtkOStrStreamWrapper_h
00027 #define __vtkOStrStreamWrapper_h
00028 
00029 #ifndef __VTK_SYSTEM_INCLUDES__INSIDE
00030 Do_not_include_vtkOStrStreamWrapper_directly__vtkSystemIncludes_includes_it;
00031 #endif
00032 
00033 class VTKCOMMONCORE_EXPORT vtkOStrStreamWrapper: public vtkOStreamWrapper
00034 {
00035 public:
00037   vtkOStrStreamWrapper();
00038 
00040   ~vtkOStrStreamWrapper();
00041 
00045   char* str();
00046 
00049   vtkOStrStreamWrapper* rdbuf();
00050 
00052 
00054   void freeze();
00055   void freeze(int);
00056 protected:
00057   // The pointer returned by str().
00058   char* Result;
00060 
00061   // Whether the caller of str() owns the memory.
00062   int Frozen;
00063 private:
00064   vtkOStrStreamWrapper(const vtkOStrStreamWrapper& r); // Not Implemented.
00065   vtkOStrStreamWrapper& operator=(const vtkOStrStreamWrapper&); // Not Implemented.
00066 };
00067 
00068 #endif
00069 // VTK-HeaderTest-Exclude: vtkOStrStreamWrapper.h