vtkMimeTypes Class Reference

#include <vtkMimeTypes.h>


Detailed Description

Determines the MIME type of a resource.

vtkMimeTypes is a helper class for determining the MIME type of a resource at runtime. To use it, create an instance of vtkMimeTypes, then call the Lookup() method to determine the MIME type of each resource of-interest.

vtkMimeTypes relies on a set of strategy objects to perform the actual lookups. These strategy objects may determine the MIME type based on arbitrary methods, including looking at file extensions, examining the contents of the resource, or some combination thereof.

By default, vtkMimeTypes is configured with a simple cross-platform strategy that identifies resources based on a hard-coded list of filename extensions, but you can supplement this process with your own strategies. The list of strategies is executed in-order to determine the MIME type of a resource, so earlier strategies "override" later strategies.

See also:
vtkMimeTypeStrategy, vtkFileExtensionMimeTypeStrategy.
Thanks:
Developed by Timothy M. Shead (tshead@sandia.gov) at Sandia National Laboratories.
BTX Implementation* const Internal; ETX

Tests:
vtkMimeTypes (Tests)

Definition at line 27 of file vtkMimeTypes.h.


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

Generated on Mon Sep 27 18:34:49 2010 for VTK by  doxygen 1.5.6