Maps given strings "on" or "off" to boolean values 0 or 1.
- Parameters:
-
[in] | s | String to be checked. |
- Returns:
- Bool
- Exceptions:
-
ticpp::Exception | thrown if std::string neither on or off (or 0/1)! Maps given std::strings "yes" or "no" to boolean values 0 or 1. |
- Parameters:
-
[in] | s | std::string to be checked. |
- Returns:
- Bool
- Exceptions:
-
ticpp::Exception | thrown if std::string neither yes or no (or 0/1)! Checks, if the given std::string equals "master". |
- Parameters:
-
[in] | s | std::string to be checked. |
- Returns:
- Bool Checks, if the given std::string equals "slave".
- Parameters:
-
[in] | s | std::string to be checked. |
- Returns:
- Bool Checks, if the given std::string equals "aperiodic".
- Parameters:
-
[in] | s | std::string to be checked. |
- Returns:
- Bool Maps a given std::string to the specific code of this filter at the the g.USBamp.
- Parameters:
-
[in] | s | std::string to be checked. |
- Returns:
- FilterID
- Exceptions:
-
ticpp::Exception | thrown if filter name not found! Maps a given std::string to the specific OP_MODE of the g.USBamp. |
- Parameters:
-
[in] | s | std::string to be checked. |
- Returns:
- OP_MODE std::string
- Exceptions:
-
ticpp::Exception | thrown if OP_MODE name not found! Maps a given std::string to the specific g.USBamp channels group (naming on the front of the g.USBamp). |
- Parameters:
-
[in] | s | std::string to be checked. |
- Returns:
- block_id
- Exceptions:
-
ticpp::Exception | thrown if channel group naming not found! Maps a given std::string to the respective SignalType flag. |
- Parameters:
-
[in] | s | std::string to be checked. |
- Returns:
- flag
- Exceptions:
-
ticpp::Exception | thrown if std::string not representing any valid signaltype! |