#include <vtkMimeTypeStrategy.h>
Concrete derivatives of vtkMimeTypeStrategy implement strategies for looking-up the MIME type of a resource, given its URI, its content, or both.
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 vtkMimeTypeStrategy * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkMimeTypeStrategy () | |
virtual | ~vtkMimeTypeStrategy () |
Reimplemented from vtkObject.
Reimplemented in vtkFileExtensionMimeTypeStrategy, and vtkForceMimeTypeStrategy.
Definition at line 46 of file vtkMimeTypeStrategy.h.
vtkMimeTypeStrategy::vtkMimeTypeStrategy | ( | ) | [protected] |
virtual vtkMimeTypeStrategy::~vtkMimeTypeStrategy | ( | ) | [protected, virtual] |
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.