rohdeschwarz  0.2.0
TCPIP socket library for Rohde & Schwarz instrument control
preserve_data_format.hpp
Go to the documentation of this file.
1 
7 #ifndef ROHDESCHWARZ_INSTRUMENTS_VNA_PRESERVE_DATA_FORMAT_HPP
8 #define ROHDESCHWARZ_INSTRUMENTS_VNA_PRESERVE_DATA_FORMAT_HPP
9 
10 
11 // rohdeschwarz
13 
14 
16 {
17 
29 {
30 
31 public:
32 
33  // lifecycle
34 
42  PreserveDataFormat(Vna *vna);
43 
44 
52 
53 
54 private:
55 
56  // initial data format settings
57  bool _isBinary;
58  bool _is64Bit;
59  bool _isBigEndian;
60  DataFormat _dataFormat;
61 
62 
63  // helpers
64 
68  void restoreBinaryBits();
69 
70 
74  void restoreByteOrder();
75 
76 
77 }; // class PreserveDataFormat
78 
79 
80 } // namespace rohdeschwarz::instruments::vna
81 #endif // ROHDESCHWARZ_INSTRUMENTS_VNA_PRESERVE_DATA_FORMAT_HPP
Object-oriented control of the data transfer format and byte order.
Definition: data_format.hpp:36
Class for preserving data format and byte order in a particular scope.
Object-oriented R&S ZNX-series VNA control.
Definition: vna.hpp:34
rohdeschwarz::instruments::vna::Vna definition