rohdeschwarz  0.2.0
TCPIP socket library for Rohde & Schwarz instrument control
Public Member Functions | List of all members
rohdeschwarz::instruments::vna::PreserveDataFormat Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PreserveDataFormat()

PreserveDataFormat::PreserveDataFormat ( Vna vna)

Constructor.

Stores the current data transfer format and byte order.

Parameters
[in]vnaPointer to underlying Vna instance.

Definition at line 12 of file preserve_data_format.cpp.

◆ ~PreserveDataFormat()

PreserveDataFormat::~PreserveDataFormat ( )

Destructor.

Restores the data transfer format and byte order stored during construction.

Definition at line 21 of file preserve_data_format.cpp.


The documentation for this class was generated from the following files: