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_win32::win_smart_device Class Reference
Collaboration diagram for os_win32::win_smart_device:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 win_smart_device ()
virtual ~win_smart_device () throw ()
virtual bool is_open () const
 Return true if device is open.
virtual bool close ()
 Close device, return false on error.

Protected Member Functions

void set_fh (HANDLE fh)
 Set handle for open() in derived classes.
HANDLE get_fh () const
 Return handle for derived classes.

Private Attributes

HANDLE m_fh
 File handle.

Detailed Description

Definition at line 319 of file os_win32.cpp.


Constructor & Destructor Documentation

os_win32::win_smart_device::win_smart_device ( ) [inline]

Definition at line 323 of file os_win32.cpp.

os_win32::win_smart_device::~win_smart_device ( ) throw () [virtual]

Definition at line 2343 of file os_win32.cpp.


Member Function Documentation

bool os_win32::win_smart_device::close ( ) [virtual]

Close device, return false on error.

Implements smart_device.

Definition at line 2354 of file os_win32.cpp.

HANDLE os_win32::win_smart_device::get_fh ( ) const [inline, protected]

Return handle for derived classes.

Definition at line 340 of file os_win32.cpp.

bool os_win32::win_smart_device::is_open ( ) const [virtual]

Return true if device is open.

Implements smart_device.

Definition at line 2349 of file os_win32.cpp.

void os_win32::win_smart_device::set_fh ( HANDLE  fh) [inline, protected]

Set handle for open() in derived classes.

Definition at line 336 of file os_win32.cpp.


Member Data Documentation

File handle.

Definition at line 344 of file os_win32.cpp.


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