smartmontools SVN Rev 3317
Utility to control and monitor storage systems with "S.M.A.R.T."
Public Member Functions | Protected Member Functions | Private Attributes
os::legacy_smart_device Class Reference

Implement shared open/close routines with old functions. More...

Collaboration diagram for os::legacy_smart_device:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 legacy_smart_device (const char *mode)
virtual ~legacy_smart_device () throw ()
virtual bool is_open () const
 Return true if device is open.
virtual bool open ()
 Open device, return false on error.
virtual bool close ()
 Close device, return false on error.

Protected Member Functions

int get_fd () const
 Return filedesc for derived classes.

Private Attributes

int m_fd
 filedesc, -1 if not open.
const char * m_mode
 Mode string for deviceopen().

Detailed Description

Implement shared open/close routines with old functions.

Definition at line 57 of file dev_legacy.cpp.


Constructor & Destructor Documentation

os::legacy_smart_device::legacy_smart_device ( const char *  mode) [inline, explicit]

Definition at line 61 of file dev_legacy.cpp.

os::legacy_smart_device::~legacy_smart_device ( ) throw () [virtual]

Definition at line 84 of file dev_legacy.cpp.


Member Function Documentation

bool os::legacy_smart_device::close ( ) [virtual]

Close device, return false on error.

Implements smart_device.

Definition at line 105 of file dev_legacy.cpp.

int os::legacy_smart_device::get_fd ( ) const [inline, protected]

Return filedesc for derived classes.

Definition at line 75 of file dev_legacy.cpp.

bool os::legacy_smart_device::is_open ( ) const [virtual]

Return true if device is open.

Implements smart_device.

Definition at line 90 of file dev_legacy.cpp.

bool os::legacy_smart_device::open ( ) [virtual]

Open device, return false on error.

Implements smart_device.

Definition at line 95 of file dev_legacy.cpp.


Member Data Documentation

filedesc, -1 if not open.

Definition at line 79 of file dev_legacy.cpp.

const char* os::legacy_smart_device::m_mode [private]

Mode string for deviceopen().

Definition at line 80 of file dev_legacy.cpp.


The documentation for this class was generated from the following file: