VTK
vtkTextExtractionStrategy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTextExtractionStrategy.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 
36 #ifndef _vtkTextExtractionStrategy_h
37 #define _vtkTextExtractionStrategy_h
38 
39 #include <vtkObject.h>
40 
41 class vtkIdTypeArray;
42 class vtkStdString;
43 class vtkStringArray;
44 class vtkUnicodeString;
46 
48  public vtkObject
49 {
50 public:
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
65  virtual bool Extract(
66  const vtkIdType document,
67  const vtkStdString& uri,
68  const vtkStdString& mime_type,
69  const vtkTypeUInt8* content_begin,
70  const vtkTypeUInt8* content_end,
71  vtkUnicodeString& text,
72  vtkIdTypeArray* tag_document,
73  vtkIdTypeArray* tag_begin,
74  vtkIdTypeArray* tag_end,
75  vtkStringArray* tag_type) = 0;
77 
78 protected:
80  virtual ~vtkTextExtractionStrategy();
81 
82 private:
83  vtkTextExtractionStrategy(const vtkTextExtractionStrategy&); //Not implemented.
84  void operator=(const vtkTextExtractionStrategy&); //Not implemented.
85 };
86 
87 #endif // !_vtkTextExtractionStrategy_h
88 
Wrapper around vtkstd::string to keep symbols short.
Definition: vtkStdString.h:45
#define VTK_TEXT_ANALYSIS_EXPORT
abstract base class for most VTK objects
Definition: vtkObject.h:60
Subclass of vtkAbstractArray that holds vtkUnicodeStrings.
a vtkAbstractArray subclass for strings
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:255
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
String class that stores Unicode text.
Abstract interface for an object that can extract tagged text from a resource.