SDHLibrary-CPP 0.0.2.10SCHUNK GmbH & Co. KG
C++ access library for SCHUNK Dextrous Hand SDH

SDH::cSerialBase::cSetTimeoutTemporarily Class Reference

helper class to set timeout of _serial_base on construction and reset to previous value on destruction. (RAII-idiom) More...

#include <serialbase.h>

Collaboration diagram for SDH::cSerialBase::cSetTimeoutTemporarily:

List of all members.

Public Member Functions

 cSetTimeoutTemporarily (cSerialBase *_serial_base, double new_timeout)
 CTOR: remember current timeout of _serial_base and set its timeout to new_timeout, but only if current timeout and new_timeout differ.
 ~cSetTimeoutTemporarily ()
 DTOR: restore the remembered timeout.

Detailed Description

helper class to set timeout of _serial_base on construction and reset to previous value on destruction. (RAII-idiom)


Constructor & Destructor Documentation

SDH::cSerialBase::cSetTimeoutTemporarily::cSetTimeoutTemporarily ( cSerialBase _serial_base,
double  new_timeout 
) [inline]

CTOR: remember current timeout of _serial_base and set its timeout to new_timeout, but only if current timeout and new_timeout differ.

SDH::cSerialBase::cSetTimeoutTemporarily::~cSetTimeoutTemporarily ( ) [inline]

DTOR: restore the remembered timeout.


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