API
MagAOX::app::RH Namespace Reference

Functions

int parseC (float &temp, const std::string &str)
 Parse the RH probe C temp command. More...
 
int parseH (float &humid, const std::string &str)
 Parse the RH probe H humidity command. More...
 

Function Documentation

◆ parseC()

int MagAOX::app::RH::parseC ( float &  temp,
const std::string &  str 
)

Parse the RH probe C temp command.

Returns
-1 if the end of transmission string is not found
-2 if there is no value in the string
-3 if the parsed string does not begin with a digit
0 on success
Parameters
[out]tempthe reported temperature
[in]strthe string returned by the device

Definition at line 26 of file rhusbMonParsers.hpp.

Referenced by MagAOX::app::rhusbMon::readProbe(), and rhusbMonParsers_test::SCENARIO().

◆ parseH()

int MagAOX::app::RH::parseH ( float &  humid,
const std::string &  str 
)

Parse the RH probe H humidity command.

Returns
-1 if the end of transmission string is not found
-2 if there is not value in the string
-3 if the parsed string does not begin with a digit
0 on success
Parameters
[out]humidthe reported temperature
[in]strthe string returned by the device

Definition at line 61 of file rhusbMonParsers.hpp.

Referenced by MagAOX::app::rhusbMon::readProbe(), and rhusbMonParsers_test::SCENARIO().