Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

DWFCore::DWFMIME Class Reference

#include "dwfcore/MIME.h"

Inheritance diagram for DWFCore::DWFMIME:

Inheritance graph
[legend]
Collaboration diagram for DWFCore::DWFMIME:

Collaboration graph
[legend]
List of all members.

Detailed Description

Singleton providing a map of known MIME type strings to their file extensions.
Since:
1.0.1.

Definition at line 47 of file MIME.h.

Static Public Member Functions

static _DWFCORE_API DWFIterator<
const wchar_t *const > * 
GetMIMEType (const wchar_t *const zExtension) throw ( DWFException )
static _DWFCORE_API const
wchar_t *const 
GetExtension (const wchar_t *const zMIMEType) throw ( DWFException )

Static Public Attributes

static const wchar_t *const kzMIMEType_DWF1
 L"model/vnd.dwf".
static const wchar_t *const kzMIMEType_DWF2
 L"application/x-dwf".
static const wchar_t *const kzMIMEType_DWF3
 L"drawing/x-dwf".
static const wchar_t *const kzMIMEType_W2D
 L"application/x-w2d".
static const wchar_t *const kzMIMEType_W3D
 L"application/x-w3d".
static const wchar_t *const kzMIMEType_DSD
 L"application/x-dsd".
static const wchar_t *const kzMIMEType_PIA
 L"application/x-dwg-state".
static const wchar_t *const kzMIMEType_PNG
 L"image/png".
static const wchar_t *const kzMIMEType_JPG
 L"image/jpeg".
static const wchar_t *const kzMIMEType_TXT
 L"text/plain".
static const wchar_t *const kzMIMEType_XML
 L"text/xml".
static const wchar_t *const kzMIMEType_FONT
 L"application-xfont".
static const wchar_t *const kzExtension_DWF
 L"dwf".
static const wchar_t *const kzExtension_W2D
 L"w2d".
static const wchar_t *const kzExtension_W3D
 L"w3d".
static const wchar_t *const kzExtension_DSD
 L"dsd".
static const wchar_t *const kzExtension_PNG
 L"png".
static const wchar_t *const kzExtension_PIA
 L"pia".
static const wchar_t *const kzExtension_JPG
 L"jpg".
static const wchar_t *const kzExtension_TXT
 L"txt".
static const wchar_t *const kzExtension_XML
 L"xml".
static const wchar_t *const kzExtension_FONT
 L"ef_".


Member Function Documentation

static _DWFCORE_API const wchar_t* const DWFCore::DWFMIME::GetExtension const wchar_t *const   zMIMEType  )  throw ( DWFException ) [static]
 

Returns the file extension string mapped to the MIME type specified.

Parameters:
zMIMEType The MIME type string.
Returns:
The file extension (without a leading ".") or NULL if the MIME type is unmapped.
Exceptions:
DWFException 

static _DWFCORE_API DWFIterator<const wchar_t* const>* DWFCore::DWFMIME::GetMIMEType const wchar_t *const   zExtension  )  throw ( DWFException ) [static]
 

Returns a list of zero or more MIME type strings mapped to the file extension specified.

Parameters:
zExtension The file extension (without a leading ".")
Returns:
A pointer to an iterator of MIME type string constants. This pointer must be deleted by the caller using the DWFCORE_FREE_OBJECT macro.
Exceptions:
DWFException 


The documentation for this class was generated from the following file:
Generated on Tue May 17 12:05:19 2005 for Autodesk DWF Core Library by  doxygen 1.4.1