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

# 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 =========================================================================*/
    00040 #ifndef __vtkOStrStreamWrapper_h
    00041 #define __vtkOStrStreamWrapper_h
    00042
    00043 #ifndef __VTK_SYSTEM_INCLUDES__INSIDE
    00044 Do_not_include_vtkOStrStreamWrapper_directly__vtkSystemIncludes_includes_it;
    00045 #endif
    00046
    00047 class VTK_COMMON_EXPORT vtkOStrStreamWrapper: public vtkOStreamWrapper
    00048 {
    00049 public:
    00051   vtkOStrStreamWrapper();
    00052
    00054   ~vtkOStrStreamWrapper();
    00055
    00059   char* str();
    00060
    00063   vtkOStrStreamWrapper* rdbuf();
    00064
    00066
    00068   void freeze();
    00069   void freeze(int);
    00071 protected:
    00072   // The pointer returned by str().
    00073   char* Result;
    00074
    00075   // Whether the caller of str() owns the memory.
    00076   int Frozen;
    00077 private:
    00078   vtkOStrStreamWrapper(const vtkOStrStreamWrapper& r); // Not Implemented.
    00079   vtkOStrStreamWrapper& operator=(const vtkOStrStreamWrapper&); // Not Implemented.
    00080 };
    00081
    00082 #endif