VTK
dox/IO/vtkXMLPStructuredDataWriter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkXMLPStructuredDataWriter.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 =========================================================================*/
00022 #ifndef __vtkXMLPStructuredDataWriter_h
00023 #define __vtkXMLPStructuredDataWriter_h
00024 
00025 #include "vtkXMLPDataWriter.h"
00026 
00027 class vtkXMLStructuredDataWriter;
00028 
00029 class VTK_IO_EXPORT vtkXMLPStructuredDataWriter : public vtkXMLPDataWriter
00030 {
00031 public:
00032   vtkTypeMacro(vtkXMLPStructuredDataWriter,vtkXMLPDataWriter);
00033   void PrintSelf(ostream& os, vtkIndent indent);
00034   
00035 protected:
00036   vtkXMLPStructuredDataWriter();
00037   ~vtkXMLPStructuredDataWriter();
00038   
00039   virtual vtkXMLStructuredDataWriter* CreateStructuredPieceWriter()=0;
00040   void WritePrimaryElementAttributes(ostream &os, vtkIndent indent);
00041   void WritePPieceAttributes(int index);
00042   vtkXMLWriter* CreatePieceWriter(int index);
00043   
00044 private:
00045   vtkXMLPStructuredDataWriter(const vtkXMLPStructuredDataWriter&);  // Not implemented.
00046   void operator=(const vtkXMLPStructuredDataWriter&);  // Not implemented.
00047 };
00048 
00049 #endif