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