VTK
vtkDocumentReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDocumentReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
20 
54 #ifndef __vtkDocumentReader_h
55 #define __vtkDocumentReader_h
56 
57 #include <vtkTableAlgorithm.h>
58 
59 class vtkStdString;
60 
62  public vtkTableAlgorithm
63 {
64 public:
65  static vtkDocumentReader* New();
67  void PrintSelf(ostream& os, vtkIndent indent);
68 
70 
71  void AddFile(const char* file);
72  void AddFile(const vtkStdString& file);
74 
76  void ClearFiles();
77 
78 //BTX
79 protected:
82 
83  virtual int RequestData(
84  vtkInformation* request,
85  vtkInformationVector** inputVector,
86  vtkInformationVector* outputVector);
87 
88 private:
89  vtkDocumentReader(const vtkDocumentReader &); // Not implemented.
90  void operator=(const vtkDocumentReader &); // Not implemented.
91 
92  friend class vtkPDocumentReader;
93  void AddFile(const vtkStdString& file, const vtkIdType id);
94 
95  class Implementation;
96  Implementation* const Internal;
97 //ETX
98 };
99 
100 #endif // __vtkDocumentReader_h
101