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
tunnelled_device_base Class Reference

Common functionality for all tunnelled_device classes. More...

#include <dev_tunnelled.h>

Collaboration diagram for tunnelled_device_base:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~tunnelled_device_base () 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.
virtual bool owns (const smart_device *dev) const
 Return true if other device is owned by this device.
virtual void release (const smart_device *dev)
 Release ownership of other device.

Protected Member Functions

 tunnelled_device_base (smart_device *tunnel_dev)

Private Attributes

smart_devicem_tunnel_base_dev

Detailed Description

Common functionality for all tunnelled_device classes.

Definition at line 30 of file dev_tunnelled.h.


Constructor & Destructor Documentation

tunnelled_device_base::tunnelled_device_base ( smart_device tunnel_dev) [explicit, protected]

Definition at line 200 of file dev_interface.cpp.

tunnelled_device_base::~tunnelled_device_base ( ) throw () [virtual]

Definition at line 206 of file dev_interface.cpp.


Member Function Documentation

bool tunnelled_device_base::close ( ) [virtual]

Close device, return false on error.

Implements smart_device.

Definition at line 225 of file dev_interface.cpp.

bool tunnelled_device_base::is_open ( ) const [virtual]

Return true if device is open.

Implements smart_device.

Definition at line 211 of file dev_interface.cpp.

bool tunnelled_device_base::open ( ) [virtual]

Open device, return false on error.

Implements smart_device.

Reimplemented in sat::usbjmicron_device.

Definition at line 216 of file dev_interface.cpp.

bool tunnelled_device_base::owns ( const smart_device dev) const [virtual]

Return true if other device is owned by this device.

Default implementation returns false.

Reimplemented from smart_device.

Definition at line 234 of file dev_interface.cpp.

void tunnelled_device_base::release ( const smart_device dev) [virtual]

Release ownership of other device.

Default implementation does nothing.

Reimplemented from smart_device.

Reimplemented in tunnelled_device< BaseDev, TunnelDev >, tunnelled_device< ata_device, scsi_device >, tunnelled_device< ata_device_with_command_set, scsi_device >, and tunnelled_device< ata_device, scsi_device >.

Definition at line 239 of file dev_interface.cpp.


Member Data Documentation

Definition at line 50 of file dev_tunnelled.h.


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