25 #ifndef INCLUDED_GetSerialPortState_h_GUID_6A7FD323_CCB5_4093_45E3_9BA7A2943777 26 #define INCLUDED_GetSerialPortState_h_GUID_6A7FD323_CCB5_4093_45E3_9BA7A2943777 64 std::string
const &origPort = std::string());
75 #endif // INCLUDED_GetSerialPortState_h_GUID_6A7FD323_CCB5_4093_45E3_9BA7A2943777 SerialPortState
Definition: GetSerialPortState.h:37
std::string normalizeAndVerifySerialPort(std::string const &port)
Normalizes and verifies the accessibility of a serial port and throws a std::exception unless it is a...
Definition: GetSerialPortState.cpp:116
SerialPortState getSerialPortState(std::string const &port)
Returns an enum value indicating the apparent state of the port.
Definition: GetSerialPortState.cpp:72
void verifySerialPort(std::string const &port, std::string const &origPort=std::string())
Verifies the accessibility of a serial port and throws a std::exception unless it is available...
Definition: GetSerialPortState.cpp:94
Something's wrong with the port name you gave.
Definition: GetSerialPortState.h:38
serial port requested is present, but busy (opened for exclusive use).
Definition: GetSerialPortState.h:40
serial port requested is missing.
Definition: GetSerialPortState.h:39
serial port requested is available and not opened for exclusive use.
Definition: GetSerialPortState.h:42
std::string normalizeSerialPort(std::string const &port)
Normalizes the name of a serial port.
Definition: GetSerialPortState.cpp:79