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

vtkOStrStreamWrapper.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkOStrStreamWrapper.h,v $
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 =========================================================================*/
00039 #ifndef __vtkOStrStreamWrapper_h
00040 #define __vtkOStrStreamWrapper_h
00041 
00042 #ifndef __VTK_SYSTEM_INCLUDES__INSIDE
00043 Do_not_include_vtkOStrStreamWrapper_directly__vtkSystemIncludes_includes_it;
00044 #endif
00045 
00046 class VTK_COMMON_EXPORT vtkOStrStreamWrapper: public vtkOStreamWrapper
00047 {
00048 public:
00050   vtkOStrStreamWrapper();
00051   
00053   ~vtkOStrStreamWrapper();
00054   
00058   char* str();
00059   
00062   vtkOStrStreamWrapper* rdbuf();
00063   
00065 
00067   void freeze();
00068   void freeze(int);
00070 protected:
00071   // The pointer returned by str().
00072   char* Result;
00073   
00074   // Whether the caller of str() owns the memory.
00075   int Frozen;
00076 private:
00077   vtkOStrStreamWrapper(const vtkOStrStreamWrapper& r); // Not Implemented.
00078   vtkOStrStreamWrapper& operator=(const vtkOStrStreamWrapper&); // Not Implemented.
00079 };
00080 
00081 #endif