The Nebula Device 3: IO::MediaType Class Reference

The Nebula Device 3

IO::MediaType Class Reference

#include <mediatype.h>


Detailed Description

Encapsulates a MIME conformant media type description (text/plain, image/jpg, etc...).

(C) 2006 Radon Labs GmbH

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::StringGetType () const
 get type
const Util::StringGetSubType () const
 get subtype