Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::cMime Struct Reference

#include <cMime.h>

Static Public Member Functions

static const char *__stdcall GetMimeTypeName (MIME_TYPE eMimeType)
 
static MIME_TYPE __stdcall FindMimeTypeName (const char *pszName)
 
static MIME_TYPE __stdcall FindMimeTypeForExt (const char *pszExt, MIME_TYPE eMimeTypeDefault=MIME_UNKNOWN)
 

Static Public Attributes

static const char *const k_aszMimeType [MIME_QTY+1]
 Predefined known types. More...
 
static const char *const k_aszMimeExt [(MIME_QTY *2)+1]
 

Detailed Description

Declare all the file types that the app might want to use. _WIN32 registry calls MIME name strings "Content Type" HTTP calls this "Content-Type"

Member Function Documentation

◆ FindMimeTypeForExt()

MIME_TYPE GRAYCALL Gray::cMime::FindMimeTypeForExt ( const char *  pszExt,
MIME_TYPE  eMimeTypeDefault = MIME_UNKNOWN 
)
static

For a given file '.ext', find the MIME_TYPE for it. CMIMEType

Note
we could check for text files vs binary files ?

◆ FindMimeTypeName()

MIME_TYPE GRAYCALL Gray::cMime::FindMimeTypeName ( const char *  pszName)
static

NOT exactly the same as Str_TableFindHead() ?

◆ GetMimeTypeName()

const char *GRAYCALL Gray::cMime::GetMimeTypeName ( MIME_TYPE  eMimeType)
static

Member Data Documentation

◆ k_aszMimeExt

const char *const Gray::cMime::k_aszMimeExt
static
Initial value:
=
{
#define cMimeType(a,b,c,d,e)
nullptr,
}

◆ k_aszMimeType

const char *const Gray::cMime::k_aszMimeType
static
Initial value:
=
{
#define cMimeType(a,b,c,d,e)
nullptr,
}

Predefined known types.


The documentation for this struct was generated from the following files: