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

SLDevice Class Reference
[segusoland C++ Library]

This class holds a device name and its kind. More...

#include <SLDevice.hpp>

Collaboration diagram for SLDevice:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SLDevice (const SLString &name, const OSDev &dev)
const SLStringgetName () const
const OSDevgetOSDev () const

Protected Attributes

const SLString _name
const OSDev _dev

Detailed Description

This class holds a device name and its kind.

Author:
Alexandre Sauve
Todo:
standardize the devices types and looks with HAL
SLDevice uses shared_ptr, see the Library section for details.


Constructor & Destructor Documentation

SLDevice::SLDevice const SLString name,
const OSDev dev
 

The SLDevice constructor makes FAST copy of its parameters.

Parameters:
name is the localized name of the device. example "My HDD 2"
dev is the OS dependant device. example : could be made from "/dev/hda2"


Member Function Documentation

const SLString& SLDevice::getName  )  const
 

Accessor to the human readable name of the device

const OSDev& SLDevice::getOSDev  )  const
 

Accessor to the OS dependant device


Member Data Documentation

const OSDev SLDevice::_dev [protected]
 

This is the OS dependant device

const SLString SLDevice::_name [protected]
 

This is the human readable name of the device.


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