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

SLFileExt Class Reference
[segusoland C++ Library]

This class hold a file extention. More...

#include <SLFileExt.hpp>

Collaboration diagram for SLFileExt:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SLFileExt (const SLString &ext)
bool operator== (const SLFileExt &other) const
const SLStringto_SLString () const

Protected Attributes

boost::shared_ptr< const SLString_shared_ptr

Detailed Description

This class hold a file extention.

Author:
Alexandre Sauve
See also:
SLFile
This class makes no supposition about the length, so any lengthes can be hold. This is because there is no limitation on a UNIX file system to the format of extentions.

Extentions are all lowercase.

Example of usage :

SLFile f("/home/user/pict.gif"); SLFileExt ext = f.getExt(); SLFileExt ext2("jpeg");


Constructor & Destructor Documentation

SLFileExt::SLFileExt const SLString ext  ) 
 

Construct an extention given its name The '.' char should be omited.


Member Function Documentation

bool SLFileExt::operator== const SLFileExt other  )  const
 

Compare two extentions

const SLString& SLFileExt::to_SLString  )  const
 

Returns the SLString version of the ext


Member Data Documentation

boost::shared_ptr<const SLString> SLFileExt::_shared_ptr [protected]
 

this variable holds data in an efficient and memory leak proof way.


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