Public Member Functions | Private Attributes
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>

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.

Private Attributes

double old_timeout
cSerialBaseserial_base

Detailed Description

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

Definition at line 182 of file serialbase.h.


Constructor & Destructor Documentation

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.

Definition at line 188 of file serialbase.h.

DTOR: restore the remembered timeout.

Definition at line 197 of file serialbase.h.


Member Data Documentation

Definition at line 185 of file serialbase.h.

Definition at line 184 of file serialbase.h.


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


schunk_sdh
Author(s): Mathias Luedtke , Florian Weisshardt
autogenerated on Sat Jun 8 2019 20:25:21