VTK
|
Abstract interface for an object that can identify the MIME type of a resource. More...
#include <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 () |
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.
Definition at line 42 of file vtkMimeTypeStrategy.h.
Reimplemented from vtkObject.
Reimplemented in vtkForceMimeTypeStrategy, and vtkFileExtensionMimeTypeStrategy.
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 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.