vtkMimeTypeStrategy Class Reference

#include <vtkMimeTypeStrategy.h>

Inheritance diagram for vtkMimeTypeStrategy:

Inheritance graph
[legend]
Collaboration diagram for vtkMimeTypeStrategy:

Collaboration graph
[legend]

List of all members.


Detailed Description

Abstract interface for an object that can identify the MIME type of a resource.

Concrete derivatives of vtkMimeTypeStrategy implement strategies for looking-up the MIME type of a resource, given its URI, its content, or both.

See also:
vtkMimeTypes, vtkFileExtensionMimeTypeStrategy.

Developed by Timothy M. Shead (tshead@sandia.gov) at Sandia National Laboratories.

Definition at line 42 of file vtkMimeTypeStrategy.h.


Public Types

typedef vtkObject Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual vtkStdString Lookup (const vtkStdString &uri, const vtkTypeUInt8 *begin, const vtkTypeUInt8 *end)=0

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkMimeTypeStrategySafeDownCast (vtkObject *o)

Protected Member Functions

 vtkMimeTypeStrategy ()
virtual ~vtkMimeTypeStrategy ()

Member Typedef Documentation

Reimplemented from vtkObject.

Reimplemented in vtkFileExtensionMimeTypeStrategy, and vtkForceMimeTypeStrategy.

Definition at line 46 of file vtkMimeTypeStrategy.h.


Constructor & Destructor Documentation

vtkMimeTypeStrategy::vtkMimeTypeStrategy (  )  [protected]

virtual vtkMimeTypeStrategy::~vtkMimeTypeStrategy (  )  [protected, virtual]


Member Function Documentation

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

Reimplemented from vtkObject.

Reimplemented in vtkFileExtensionMimeTypeStrategy, and vtkForceMimeTypeStrategy.

static int vtkMimeTypeStrategy::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 vtkObject.

Reimplemented in vtkFileExtensionMimeTypeStrategy, and vtkForceMimeTypeStrategy.

virtual int vtkMimeTypeStrategy::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 vtkObject.

Reimplemented in vtkFileExtensionMimeTypeStrategy, and vtkForceMimeTypeStrategy.

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

Reimplemented from vtkObject.

Reimplemented in vtkFileExtensionMimeTypeStrategy, and vtkForceMimeTypeStrategy.

void vtkMimeTypeStrategy::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 vtkObject.

Reimplemented in vtkFileExtensionMimeTypeStrategy, and vtkForceMimeTypeStrategy.

virtual vtkStdString vtkMimeTypeStrategy::Lookup ( const vtkStdString uri,
const vtkTypeUInt8 *  begin,
const vtkTypeUInt8 *  end 
) [pure virtual]

Given a resource URI (which could be empty), and the resource contents (would could be empty), implementations should return the MIME type of the resource, or empty-string if the type cannot be identified.

Implemented in vtkFileExtensionMimeTypeStrategy, and vtkForceMimeTypeStrategy.


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

Generated on Wed Aug 24 11:48:21 2011 for VTK by  doxygen 1.5.6