rohdeschwarz  0.2.0
TCPIP socket library for Rohde & Schwarz instrument control
Public Member Functions | List of all members
rohdeschwarz::instruments::PreserveTimeout Class Reference

Class for preserving the VISA timeout value in a particular scope. More...

#include <preserve_timeout.hpp>

Public Member Functions

 PreserveTimeout (Instrument *instrument)
 Constructor. More...
 
 ~PreserveTimeout ()
 Destructor. More...
 

Detailed Description

Class for preserving the VISA timeout value in a particular scope.

PreserveTimeout is intended for use in methods that require a particular timeout value, but want to preserve the timeout value set by the user.

On construction, PreserveTimeout stores the current timeout value. On destruction, the timeout value is restored.

Definition at line 28 of file preserve_timeout.hpp.

Constructor & Destructor Documentation

◆ PreserveTimeout()

PreserveTimeout::PreserveTimeout ( Instrument instrument)

Constructor.

Stores the current timeout value

Parameters
[in]instrumentPointer to underlying Instrument instance.

Definition at line 11 of file preserve_timeout.cpp.

◆ ~PreserveTimeout()

PreserveTimeout::~PreserveTimeout ( )

Destructor.

Restores the timeout value stored during construction.

Definition at line 19 of file preserve_timeout.cpp.


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