rohdeschwarz  0.2.0
TCPIP socket library for Rohde & Schwarz instrument control
Classes | Functions
rohdeschwarz::scpi Namespace Reference

Classes

class  BlockData
 Object-oriented Block Data storage and manipulation. More...
 
struct  IndexName
 Data type for handling named and indexed quantities. More...
 

Functions

std::string toScpi (bool value)
 Converts C/C++ bool to SCPI bool. More...
 
bool toBool (std::string scpi)
 Converts SCPI bool to C/C++ bool. More...
 

Function Documentation

◆ toBool()

bool rohdeschwarz::scpi::toBool ( std::string  scpi)

Converts SCPI bool to C/C++ bool.

Returns
true if scpi is "1"; false otherwise

Definition at line 18 of file bool.cpp.

◆ toScpi()

std::string rohdeschwarz::scpi::toScpi ( bool  value)

Converts C/C++ bool to SCPI bool.

Returns
"1" if value is true; "0" otherwise

Definition at line 12 of file bool.cpp.