VTK
vtkPlainTextExtractionStrategy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPlainTextExtractionStrategy.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 
39 #ifndef _vtkPlainTextExtractionStrategy_h
40 #define _vtkPlainTextExtractionStrategy_h
41 
43 
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
52  virtual bool Extract(
53  const vtkIdType document,
54  const vtkStdString& uri,
55  const vtkStdString& mime_type,
56  const vtkTypeUInt8* content_begin,
57  const vtkTypeUInt8* content_end,
58  vtkUnicodeString& text,
59  vtkIdTypeArray* tag_document,
60  vtkIdTypeArray* tag_begin,
61  vtkIdTypeArray* tag_end,
62  vtkStringArray* tag_type);
63 
64 protected:
67 
68 private:
70  void operator=(const vtkPlainTextExtractionStrategy&); //Not implemented.
71 };
72 
73 #endif // !_vtkPlainTextExtractionStrategy_h
74 
Wrapper around vtkstd::string to keep symbols short.
Definition: vtkStdString.h:45
#define VTK_TEXT_ANALYSIS_EXPORT
virtual bool Extract(const vtkIdType document, const vtkStdString &uri, const vtkStdString &mime_type, const vtkTypeUInt8 *content_begin, const vtkTypeUInt8 *content_end, vtkUnicodeString &text, vtkIdTypeArray *tag_document, vtkIdTypeArray *tag_begin, vtkIdTypeArray *tag_end, vtkStringArray *tag_type)=0
void PrintSelf(ostream &os, vtkIndent indent)
a vtkAbstractArray subclass for strings
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:255
text extraction strategy that works with text/* data.
a simple class to control print indentation
Definition: vtkIndent.h:37
static vtkObject * New()
String class that stores Unicode text.
Abstract interface for an object that can extract tagged text from a resource.