00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTokenValueFilter.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 00051 #ifndef __vtkTokenValueFilter_h 00052 #define __vtkTokenValueFilter_h 00053 00054 #include <vtkTableAlgorithm.h> 00055 00056 class vtkUnicodeString; 00057 00058 class VTK_TEXT_ANALYSIS_EXPORT vtkTokenValueFilter : 00059 public vtkTableAlgorithm 00060 { 00061 public: 00062 static vtkTokenValueFilter* New(); 00063 vtkTypeMacro(vtkTokenValueFilter, vtkTableAlgorithm); 00064 void PrintSelf(ostream& os, vtkIndent indent); 00065 00067 00069 void AddStopWordValues(); 00070 // Description: 00071 // Adds a new value to the list of token values that will be discarded. 00072 void AddValue(const vtkUnicodeString& value); 00073 // Description: 00074 // Clears the list of discardable token values. 00075 void ClearValues(); 00077 00078 //BTX 00079 protected: 00080 vtkTokenValueFilter(); 00081 ~vtkTokenValueFilter(); 00082 00083 virtual int RequestData( 00084 vtkInformation* request, 00085 vtkInformationVector** inputVector, 00086 vtkInformationVector* outputVector); 00087 00088 00089 private: 00090 vtkTokenValueFilter(const vtkTokenValueFilter &); // Not implemented. 00091 void operator=(const vtkTokenValueFilter &); // Not implemented. 00092 00093 class Internals; 00094 Internals* const Implementation; 00095 //ETX 00096 }; 00097 00098 #endif // __vtkTokenValueFilter_h 00099