Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

SLMime Class Reference
[segusoland C++ Library]

This class describe the mime type of a SLFile object. More...

#include <SLMime.hpp>

Collaboration diagram for SLMime:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SLMime (const char *c_str)
bool operator== (const SLMime &other)

Protected Attributes

boost::shared_ptr< Data > _shared_ptr

Detailed Description

This class describe the mime type of a SLFile object.

Author:
Alexandre Sauve
See also:
PluginFeature::MimeTypes
Todo:
refine this class with freedesktop mime-db
It is a lightweight and can be obtained from a PluginFeature::MimeTypes instance.

SLString uses shared_ptr, see the Library section for details.


Constructor & Destructor Documentation

SLMime::SLMime const char *  c_str  ) 
 

The constructor.

Parameters:
c_str is a '\0' terminated string looking like "image/jpeg", etc...


Member Function Documentation

bool SLMime::operator== const SLMime other  ) 
 

This operator allow SLMime comparison without accessing the internals as the format may change.


Member Data Documentation

boost::shared_ptr<Data> SLMime::_shared_ptr [protected]
 

This variable hold the various data used by the mime type in an efficient and memory leaks proof way. This feature may change for a more lightweigt design in the future.


The documentation for this class was generated from the following file:
Generated on Mon Apr 19 01:03:37 2004 for segusoLand by doxygen 1.3.6-20040222