Nebula
|
#include <mediatype.h>
Encapsulates a MIME conformant media type description (text/plain, image/jpg, etc...).
Public Member Functions | |
MediaType () | |
constructor | |
MediaType (const Util::String &str) | |
init constructor from string | |
MediaType (const Util::String &type, const Util::String &subType) | |
init constructor from type and subtype | |
MediaType (const MediaType &rhs) | |
copy constructor | |
void | operator= (const MediaType &rhs) |
assignment operator | |
bool | operator== (const MediaType &rhs) |
equality operator | |
bool | operator!= (const MediaType &rhs) |
inequality operator | |
bool | IsValid () const |
return true if not empty | |
void | Clear () |
clear the media type object | |
void | Set (const Util::String &str) |
set as string (must be of the form "xxx/yyy") | |
void | Set (const Util::String &type, const Util::String &subType) |
set as type and subtype | |
Util::String | AsString () const |
return as string | |
const Util::String & | GetType () const |
get type | |
const Util::String & | GetSubType () const |
get subtype | |
Private Attributes | |
Util::String | type |
Util::String | subType |
|
inline |
constructor
|
inline |
init constructor from string
|
inline |
init constructor from type and subtype
|
inline |
copy constructor
|
inline |
return as string
|
inline |
clear the media type object
|
inline |
get subtype
|
inline |
get type
|
inline |
return true if not empty
|
inline |
inequality operator
|
inline |
assignment operator
|
inline |
equality operator
|
inline |
set as string (must be of the form "xxx/yyy")
|
inline |
set as type and subtype
|
private |
|
private |