|
rohdeschwarz
0.2.0
TCPIP socket library for Rohde & Schwarz instrument control
|
Namespaces | |
| busses | |
| instruments | |
| scpi | |
Typedefs | |
| using | Socket = busses::socket::Socket |
| using | Visa = busses::visa::Visa |
| using | Instrument = instruments::Instrument using Vna=instruments::vna::Vna |
Functions | |
| std::string | leftTrim (std::string text) |
| Trims whitespace from left (beginning) of string. More... | |
| std::string | rightTrim (std::string text) |
| Trims whitespace from right (end) of string. More... | |
| std::string | trim (const std::string &text) |
| Trims whitespace beginning and end of string. More... | |
| bool | isLeftQuote (const char *text) |
| Checks for a quote at the beginning of the string. More... | |
| bool | isLeftQuote (const std::string &text) |
| Checks for a quote at the beginning of the string. More... | |
| bool | isRightQuote (const char *text) |
| Checks for a quote at the end of the string. More... | |
| bool | isRightQuote (const std::string &text) |
| Checks for a quote at the end of the string. More... | |
| bool | isQuoted (const char *text) |
| Checks for quotes at the beginning and end of the string. More... | |
| bool | isQuoted (const std::string &text) |
| Checks for quotes at the beginning and end of the string. More... | |
| std::string | quote (const char *text, char quote_character='\'') |
| Surrounds string in quotes. More... | |
| std::string | quote (const std::string &text, char quote_character='\'') |
| Surrounds string in quotes. More... | |
| std::string | unquote (const char *text) |
| Removes quotes from beginning and end of string. More... | |
| std::string | unquote (const std::string &text) |
| Removes quotes from beginning and end of string. More... | |
| std::vector< std::string > | split (const char *csvList, const char separator=',') |
| Splits string on separator. More... | |
| std::vector< std::string > | split (const std::string &csvList, const char separator=',') |
| Splits string on separator. More... | |
| template<class OutputType > | |
| OutputType | to_value (std::string input) |
| template<> | |
| int | to_value (std::string input) |
| template<class out_type , class in_type = unsigned char> | |
| std::vector< out_type > | to_vector (in_type *data, std::size_t data_size) |
| Converts a vector of a primitive type to a vector of a different primitive type. More... | |
| template<class in_type = unsigned char> | |
| std::vector< std::complex< double > > | to_vector_complex_double (in_type *data, std::size_t data_size) |
| Converts a vector of a primitive type to a vector of complex<double> More... | |
| using rohdeschwarz::Instrument = typedef instruments::Instrument using Vna = instruments::vna::Vna |
Definition at line 14 of file instruments.hpp.
| using rohdeschwarz::Socket = typedef busses::socket::Socket |
Definition at line 15 of file busses.hpp.
| using rohdeschwarz::Visa = typedef busses::visa::Visa |
Definition at line 16 of file busses.hpp.
| bool rohdeschwarz::isLeftQuote | ( | const char * | text | ) |
Checks for a quote at the beginning of the string.
Quotes can be single or double.
| [in] | text | C style string |
Definition at line 62 of file helpers.cpp.
| bool rohdeschwarz::isLeftQuote | ( | const std::string & | text | ) |
Checks for a quote at the beginning of the string.
Quotes can be single or double.
| [in] | text | C++ style string |
Definition at line 69 of file helpers.cpp.
| bool rohdeschwarz::isQuoted | ( | const char * | text | ) |
Checks for quotes at the beginning and end of the string.
Quotes can be single or double.
| [in] | text | C style string |
Definition at line 93 of file helpers.cpp.
| bool rohdeschwarz::isQuoted | ( | const std::string & | text | ) |
Checks for quotes at the beginning and end of the string.
Quotes can be single or double.
| [in] | text | C++ style string |
Definition at line 100 of file helpers.cpp.
| bool rohdeschwarz::isRightQuote | ( | const char * | text | ) |
Checks for a quote at the end of the string.
Quotes can be single or double.
| [in] | text | C style string |
Definition at line 80 of file helpers.cpp.
| bool rohdeschwarz::isRightQuote | ( | const std::string & | text | ) |
Checks for a quote at the end of the string.
Quotes can be single or double.
| [in] | text | C++ style string |
Definition at line 87 of file helpers.cpp.
| std::string rohdeschwarz::leftTrim | ( | std::string | text | ) |
Trims whitespace from left (beginning) of string.
Definition at line 39 of file helpers.cpp.
| std::string rohdeschwarz::quote | ( | const char * | text, |
| char | quote_character = '\'' |
||
| ) |
Surrounds string in quotes.
| [in] | text | C style string to quote |
| [in] | quote_character | Quote to use; defaults to single quote |
Definition at line 106 of file helpers.cpp.
| std::string rohdeschwarz::quote | ( | const std::string & | text, |
| char | quote_character = '\'' |
||
| ) |
Surrounds string in quotes.
| [in] | text | C++ style string to quote |
| [in] | quote_character | Quote to use; defaults to single quote |
Definition at line 113 of file helpers.cpp.
| std::string rohdeschwarz::rightTrim | ( | std::string | text | ) |
Trims whitespace from right (end) of string.
Definition at line 47 of file helpers.cpp.
| std::vector< std::string > rohdeschwarz::split | ( | const char * | csvList, |
| const char | separator = ',' |
||
| ) |
Splits string on separator.
| [in] | csvList | C style string to split |
| [in] | separator | Character to separate on; defaults to comma , |
Definition at line 136 of file helpers.cpp.
| std::vector< std::string > rohdeschwarz::split | ( | const std::string & | csvList, |
| const char | separator = ',' |
||
| ) |
Splits string on separator.
| [in] | csvList | C++ style string to split |
| [in] | separator | Character to separate on; defaults to comma , |
Definition at line 143 of file helpers.cpp.
| OutputType rohdeschwarz::to_value | ( | std::string | input | ) |
| std::string rohdeschwarz::to_value | ( | std::string | input | ) |
Definition at line 7 of file to_value.cpp.
| std::vector<out_type> rohdeschwarz::to_vector | ( | in_type * | data, |
| std::size_t | data_size | ||
| ) |
Converts a vector of a primitive type to a vector of a different primitive type.
Definition at line 27 of file to_vector.hpp.
| std::vector<std::complex<double> > rohdeschwarz::to_vector_complex_double | ( | in_type * | data, |
| std::size_t | data_size | ||
| ) |
Converts a vector of a primitive type to a vector of complex<double>
The original vector is assumed to be of the format:
<real1><imag1><real2><imag2>...
Definition at line 51 of file to_vector.hpp.
| std::string rohdeschwarz::trim | ( | const std::string & | text | ) |
Trims whitespace beginning and end of string.
Definition at line 56 of file helpers.cpp.
| std::string rohdeschwarz::unquote | ( | const char * | text | ) |
Removes quotes from beginning and end of string.
| [in] | text | C style string to unquote |
Definition at line 121 of file helpers.cpp.
| std::string rohdeschwarz::unquote | ( | const std::string & | text | ) |
Removes quotes from beginning and end of string.
| [in] | text | C++ style string to unquote |
Definition at line 128 of file helpers.cpp.