rohdeschwarz
0.2.0
TCPIP socket library for Rohde & Schwarz instrument control
src
instruments
preserve_timeout.cpp
Go to the documentation of this file.
1
7
#include "
rohdeschwarz/instruments/preserve_timeout.hpp
"
8
using namespace
rohdeschwarz::instruments
;
9
10
11
PreserveTimeout::PreserveTimeout
(
Instrument
*instrument) :
12
_timeout_ms(instrument->timeout_ms()),
13
_instrument(instrument)
14
{
15
// TODO: throw exception on visa error?
16
}
17
18
19
PreserveTimeout::~PreserveTimeout
()
20
{
21
_instrument->
setTimeout
(_timeout_ms);
22
// TODO: throw exception on visa error?
23
}
rohdeschwarz::instruments::Instrument
Object-oriented R&S Instrument control.
Definition:
instrument.hpp:53
rohdeschwarz::instruments::Instrument::setTimeout
bool setTimeout(int timeout_ms)
Set IO timeout time.
Definition:
instrument.cpp:117
rohdeschwarz::instruments::PreserveTimeout::PreserveTimeout
PreserveTimeout(Instrument *instrument)
Constructor.
Definition:
preserve_timeout.cpp:11
rohdeschwarz::instruments::PreserveTimeout::~PreserveTimeout
~PreserveTimeout()
Destructor.
Definition:
preserve_timeout.cpp:19
rohdeschwarz::instruments
Definition:
instrument.hpp:36
preserve_timeout.hpp
rohdeschwarz::instruments::PreserveTimeout definition
Generated by
1.9.1