|
rohdeschwarz
0.2.0
TCPIP socket library for Rohde & Schwarz instrument control
|
Class for preserving data format and byte order in a particular scope. More...
#include <preserve_data_format.hpp>
Public Member Functions | |
| PreserveDataFormat (Vna *vna) | |
| Constructor. More... | |
| ~PreserveDataFormat () | |
| Destructor. More... | |
Class for preserving data format and byte order in a particular scope.
PreserveDataFormat is intended for use in methods that require a particular data transfer format and byte order, but want to preserve the data format and byte order set by the user.
On construction, PreserveDataFormat stores the current data transfer format. On destruction, the data transfer format is restored.
Definition at line 28 of file preserve_data_format.hpp.
| PreserveDataFormat::PreserveDataFormat | ( | Vna * | vna | ) |
Constructor.
Stores the current data transfer format and byte order.
| [in] | vna | Pointer to underlying Vna instance. |
Definition at line 12 of file preserve_data_format.cpp.
| PreserveDataFormat::~PreserveDataFormat | ( | ) |
Destructor.
Restores the data transfer format and byte order stored during construction.
Definition at line 21 of file preserve_data_format.cpp.