vtkAssignMimeType Class Reference

#include <vtkAssignMimeType.h>

Inheritance diagram for vtkAssignMimeType:

Inheritance graph
[legend]
Collaboration diagram for vtkAssignMimeType:

Collaboration graph
[legend]

List of all members.


Detailed Description

Assigns MIME types to a collection of documents.

Given a table containing document URIs and contents, tries to assign a MIME type to each document.

Inputs: Input port 0: (required) A vtkTable containing document URIs and contents (which could be binary).

Outputs: Output port 0: The same table with an additional "mime_type" column that contains the MIME type identified for each document, or empty-string.

Use SetInputArrayToProcess(0, ...) to specify the input table column that contains URIs (must be a vtkStringArray).

Use SetInputArrayToProcess(1, ...) to specify the input table column that contains document contents (must be a vtkStringArray).

Warning:
The input document contents array must be a string array, even though the individual document contents may be binary data.
Thanks:
Developed by Timothy M. Shead (tshead@sandia.gov) at Sandia National Laboratories.
Events:
vtkCommand::ProgressEvent
Tests:
vtkAssignMimeType (Tests)

Definition at line 62 of file vtkAssignMimeType.h.


Public Types

typedef vtkTableAlgorithm Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetOutputArray (const char *)
virtual char * GetOutputArray ()
virtual void SetDefaultMimeType (const char *)
virtual char * GetDefaultMimeType ()
void SetMimeTypes (vtkMimeTypes *m)
virtual vtkMimeTypesGetMimeTypes ()

Static Public Member Functions

static vtkAssignMimeTypeNew ()
static int IsTypeOf (const char *type)
static vtkAssignMimeTypeSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkAssignMimeType ()
 ~vtkAssignMimeType ()
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)

Member Typedef Documentation

Reimplemented from vtkTableAlgorithm.

Definition at line 67 of file vtkAssignMimeType.h.


Constructor & Destructor Documentation

vtkAssignMimeType::vtkAssignMimeType (  )  [protected]

vtkAssignMimeType::~vtkAssignMimeType (  )  [protected]


Member Function Documentation

static vtkAssignMimeType* vtkAssignMimeType::New (  )  [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkTableAlgorithm.

virtual const char* vtkAssignMimeType::GetClassName (  )  [virtual]

Reimplemented from vtkTableAlgorithm.

static int vtkAssignMimeType::IsTypeOf ( const char *  name  )  [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkTableAlgorithm.

virtual int vtkAssignMimeType::IsA ( const char *  name  )  [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkTableAlgorithm.

static vtkAssignMimeType* vtkAssignMimeType::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkTableAlgorithm.

void vtkAssignMimeType::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkTableAlgorithm.

virtual void vtkAssignMimeType::SetOutputArray ( const char *   )  [virtual]

Specifies the name of the output MIME type array. Default: "mime_type".

virtual char* vtkAssignMimeType::GetOutputArray (  )  [virtual]

Specifies the name of the output MIME type array. Default: "mime_type".

virtual void vtkAssignMimeType::SetDefaultMimeType ( const char *   )  [virtual]

Specifies a default MIME type that will be assigned to files whose MIME type can't otherwise be identified. Set this to "text/plain" if you want to analyze files that would otherwise be ignored (such as files without a known file extension, files without any file extension, etc). Default: empty string.

virtual char* vtkAssignMimeType::GetDefaultMimeType (  )  [virtual]

Specifies a default MIME type that will be assigned to files whose MIME type can't otherwise be identified. Set this to "text/plain" if you want to analyze files that would otherwise be ignored (such as files without a known file extension, files without any file extension, etc). Default: empty string.

void vtkAssignMimeType::SetMimeTypes ( vtkMimeTypes m  ) 

Assign a custom vtkMimeTypes object to this filter. This makes it possible to work with arbitrary Mime Type strategies.

virtual vtkMimeTypes* vtkAssignMimeType::GetMimeTypes (  )  [virtual]

Assign a custom vtkMimeTypes object to this filter. This makes it possible to work with arbitrary Mime Type strategies.

virtual int vtkAssignMimeType::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkTableAlgorithm.


The documentation for this class was generated from the following file:

Generated on Wed Aug 24 11:28:59 2011 for VTK by  doxygen 1.5.6