VTK
dox/TextAnalysis/vtkDocumentReader.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkDocumentReader.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 =========================================================================*/
00015 /*-------------------------------------------------------------------------
00016   Copyright 2008 Sandia Corporation.
00017   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00018   the U.S. Government retains certain rights in this software.
00019 -------------------------------------------------------------------------*/
00020 
00054 #ifndef __vtkDocumentReader_h
00055 #define __vtkDocumentReader_h
00056 
00057 #include <vtkTableAlgorithm.h>
00058 
00059 class vtkStdString;
00060 
00061 class VTK_TEXT_ANALYSIS_EXPORT vtkDocumentReader :
00062   public vtkTableAlgorithm
00063 {
00064 public:
00065   static vtkDocumentReader* New();
00066   vtkTypeMacro(vtkDocumentReader, vtkTableAlgorithm);
00067   void PrintSelf(ostream& os, vtkIndent indent);
00068 
00070 
00071   void AddFile(const char* file);
00072   void AddFile(const vtkStdString& file);
00074 
00076   void ClearFiles();
00077 
00078 //BTX
00079 protected:
00080   vtkDocumentReader();
00081   ~vtkDocumentReader();
00082 
00083   virtual int RequestData(
00084     vtkInformation* request,
00085     vtkInformationVector** inputVector,
00086     vtkInformationVector* outputVector);
00087 
00088 private:
00089   vtkDocumentReader(const vtkDocumentReader &); // Not implemented.
00090   void operator=(const vtkDocumentReader &); // Not implemented.
00091 
00092   friend class vtkPDocumentReader;
00093   void AddFile(const vtkStdString& file, const vtkIdType id);
00094 
00095   class Implementation;
00096   Implementation* const Internal;
00097 //ETX
00098 };
00099 
00100 #endif // __vtkDocumentReader_h
00101