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 48 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 _DWFCORE_API bool CompressByDefault (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_BMP
 L"image/bmp".
static const wchar_t *const kzMIMEType_CALS
 L"image/cals".
static const wchar_t *const kzMIMEType_FLIC
 L"image/flic".
static const wchar_t *const kzMIMEType_GIF
 L"image/gif".
static const wchar_t *const kzMIMEType_IG4
 L"image/ig4".
static const wchar_t *const kzMIMEType_JPG
 L"image/jpeg".
static const wchar_t *const kzMIMEType_PCX
 L"image/pcx".
static const wchar_t *const kzMIMEType_PICT
 L"image/pict".
static const wchar_t *const kzMIMEType_PNG
 L"image/png".
static const wchar_t *const kzMIMEType_RLC
 L"image/rlc".
static const wchar_t *const kzMIMEType_TARGA
 L"image/targa".
static const wchar_t *const kzMIMEType_TIFF
 L"image/tiff".
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 kzMIMEType_RELS
 L"application/vnd.openxmlformats-package.relationships+xml".
static const wchar_t *const kzMIMEType_DWFSEQ
 L"application/vnd.adsk-package.dwfx-dwfdocumentsequence+xml".
static const wchar_t *const kzMIMEType_FDSEQ
 L"application/vnd.ms-package.xps-fixeddocumentsequence+xml".
static const wchar_t *const kzMIMEType_FDOC
 L"application/vnd.ms-package.xps-fixeddocument+xml".
static const wchar_t *const kzMIMEType_FPAGE
 L"application/vnd.ms-package.xps-fixedpage+xml".
static const wchar_t *const kzMIMEType_TTF
 L"application/vnd.ms-opentype".
static const wchar_t *const kzMIMEType_REMOTERESOURCEDICTIONARY
 L"application/vnd.ms-package.xps-resourcedictionary+xml".
static const wchar_t *const kzMIMEType_OBFUSCATEDOPENTYPE
 L"application/vnd.ms-package.obfuscated-opentype".
static const wchar_t *const kzMIMEType_COREPROPERTIES
 L"application/vnd.openxmlformats-package.core-properties+xml".
static const wchar_t *const kzMIMEType_FIXEDPAGEXML
 L"application/vnd.adsk-package.dwfx-fixedpage+xml".
static const wchar_t *const kzMIMEType_W2D_S
 "application/x-w2d-s"
static const wchar_t *const kzMIMEType_W3D_S
 "application/x-w3d-s"
static const wchar_t *const kzMIMEType_DSD_S
 "application/x-dsd-s"
static const wchar_t *const kzMIMEType_PIA_S
 "application/x-dwg-state-s"
static const wchar_t *const kzMIMEType_BMP_S
 "image/bmp-s"
static const wchar_t *const kzMIMEType_CALS_S
 "image/cals-s"
static const wchar_t *const kzMIMEType_GIF_S
 "image/gif-s"
static const wchar_t *const kzMIMEType_FLIC_S
 "image/flic-s"
static const wchar_t *const kzMIMEType_IG4_S
 "image/ig4-s"
static const wchar_t *const kzMIMEType_JPG_S
 "image/jpeg-s"
static const wchar_t *const kzMIMEType_PCX_S
 "image/pcx-s"
static const wchar_t *const kzMIMEType_PICT_S
 "image/pict-s"
static const wchar_t *const kzMIMEType_PNG_S
 "image/png-s"
static const wchar_t *const kzMIMEType_RLC_S
 "image/rlc-s"
static const wchar_t *const kzMIMEType_TARGA_S
 "image/targa-s"
static const wchar_t *const kzMIMEType_TIFF_S
 "image/tiff-s"
static const wchar_t *const kzMIMEType_TXT_S
 "text/plain-s"
static const wchar_t *const kzMIMEType_XML_S
 "text/xml-s"
static const wchar_t *const kzMIMEType_FONT_S
 "application/x-font-s"
static const wchar_t *const kzMIMEType_FPAGE_S
 L"application/vnd.ms-package.xps-fixedpage+xml-s".
static const wchar_t *const kzMIMEType_TTF_S
 L"application/vnd.ms-opentype-s".
static const wchar_t *const kzMIMEType_REMOTERESOURCEDICTIONARY_S
 L"application/vnd.ms-package.xps-resourcedictionary+xml-s".
static const wchar_t *const kzMIMEType_OBFUSCATEDOPENTYPE_S
 L"application/vnd.ms-package.obfuscated-opentype-s".
static const wchar_t *const kzMIMEType_FIXEDPAGEXML_S
 L"application/vnd.adsk-package.dwfx-fixedpage+xml-s".
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_PIA
 L"pia".
static const wchar_t *const kzExtension_BMP
 L"bmp".
static const wchar_t *const kzExtension_CALS
 L"cal".
static const wchar_t *const kzExtension_FLIC
 L"flc".
static const wchar_t *const kzExtension_GIF
 L"gif".
static const wchar_t *const kzExtension_IG4
 L"ig4".
static const wchar_t *const kzExtension_JPG
 L"jpg".
static const wchar_t *const kzExtension_PCX
 L"pcx".
static const wchar_t *const kzExtension_PICT
 L"pct".
static const wchar_t *const kzExtension_PNG
 L"png".
static const wchar_t *const kzExtension_RLC
 L"rlc".
static const wchar_t *const kzExtension_TARGA
 L"tga".
static const wchar_t *const kzExtension_TIFF
 L"tif".
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_".
static const wchar_t *const kzExtension_RELS
 L"rels".
static const wchar_t *const kzExtension_DWFSEQ
 L"dwfseq".
static const wchar_t *const kzExtension_FDSEQ
 L"fdseq".
static const wchar_t *const kzExtension_FDOC
 L"fdoc".
static const wchar_t *const kzExtension_FPAGE
 L"fpage".
static const wchar_t *const kzExtension_TTF
 L"ttf".
static const wchar_t *const kzExtension_ODTTF
 L"odttf".
static const wchar_t *const kzExtension_W2D_S
 "w2d_s"
static const wchar_t *const kzExtension_W3D_S
 "w3d_s"
static const wchar_t *const kzExtension_DSD_S
 "dsd_s"
static const wchar_t *const kzExtension_PIA_S
 "pia_s"
static const wchar_t *const kzExtension_BMP_S
 "bmp_s"
static const wchar_t *const kzExtension_CALS_S
 "cals_s"
static const wchar_t *const kzExtension_GIF_S
 "gif_s"
static const wchar_t *const kzExtension_FLIC_S
 "flc_s"
static const wchar_t *const kzExtension_IG4_S
 "ig4_s"
static const wchar_t *const kzExtension_JPG_S
 "jpg_s"
static const wchar_t *const kzExtension_PCX_S
 "pcx_s"
static const wchar_t *const kzExtension_PICT_S
 "pct_s"
static const wchar_t *const kzExtension_PNG_S
 "png_s"
static const wchar_t *const kzExtension_RLC_S
 "rlc_s"
static const wchar_t *const kzExtension_TARGA_S
 "trg_s"
static const wchar_t *const kzExtension_TIFF_S
 "tif_s"
static const wchar_t *const kzExtension_TXT_S
 "txt_s"
static const wchar_t *const kzExtension_XML_S
 "xml_s"
static const wchar_t *const kzExtension_FONT_S
 "ef__s"
static const wchar_t *const kzExtension_XAML_S
 "xaml_s"
static const wchar_t *const kzExtension_FPAGE_S
 L"fpage_s".
static const wchar_t *const kzExtension_TTF_S
 L"ttf_s".
static const wchar_t *const kzExtension_ODTTF_S
 L"odttf_s".


Member Function Documentation

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

Given the MIME type, this returns whether a resource of the corresponding type should be compressed or not in a package. If a MIME type is unknown, this will return true.

Parameters:
zMIMEType The MIMI type string.
Returns:
Returns true if a resource of the given type should be compressed.
Exceptions:
None 

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 interator 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 Jan 6 22:39:38 2009 for Autodesk DWF Core Library by  doxygen 1.4.5