VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkMimeTypeStrategy Class Reference

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

#include <vtkMimeTypeStrategy.h>

Inheritance diagram for vtkMimeTypeStrategy:
Inheritance graph
[legend]
Collaboration diagram for vtkMimeTypeStrategy:
Collaboration graph
[legend]

List of all members.

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 ()

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.


Member Typedef Documentation

Reimplemented from vtkObject.

Reimplemented in vtkForceMimeTypeStrategy, and vtkFileExtensionMimeTypeStrategy.

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 vtkForceMimeTypeStrategy, and vtkFileExtensionMimeTypeStrategy.

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 vtkForceMimeTypeStrategy, and vtkFileExtensionMimeTypeStrategy.

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 vtkForceMimeTypeStrategy, and vtkFileExtensionMimeTypeStrategy.

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

Reimplemented from vtkObject.

Reimplemented in vtkForceMimeTypeStrategy, and vtkFileExtensionMimeTypeStrategy.

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 vtkForceMimeTypeStrategy, and vtkFileExtensionMimeTypeStrategy.

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 vtkForceMimeTypeStrategy, and vtkFileExtensionMimeTypeStrategy.


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