Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | 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 =========================================================================*/
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 VTK_COMMON_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);
00060 protected:
00061   // The pointer returned by str().
00062   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

Generated on Mon Jan 21 23:07:17 2008 for VTK by  doxygen 1.4.3-20050530