|
rohdeschwarz
0.2.0
TCPIP socket library for Rohde & Schwarz instrument control
|
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... | |
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.
| PreserveTimeout::PreserveTimeout | ( | Instrument * | instrument | ) |
Constructor.
Stores the current timeout value
| [in] | instrument | Pointer to underlying Instrument instance. |
Definition at line 11 of file preserve_timeout.cpp.
| PreserveTimeout::~PreserveTimeout | ( | ) |
Destructor.
Restores the timeout value stored during construction.
Definition at line 19 of file preserve_timeout.cpp.