Holds information about a port.
More...
#include <types.h>
|
| PortInfo ()=default |
| Default constructor.
|
|
| PortInfo (const std::string &long_name, const std::string &short_name) |
| Constructor initializing info.
|
|
|
std::string | long_name |
| The long name of the port (same as short name on Linux)
|
|
std::string | short_name |
| short_name Short name of the port (e.g. "COM1" or "/dev/ttyS0")
|
|
|
std::ostream & | operator<< (std::ostream &os, const PortInfo &obj) |
| Overloaded stream output operator to display port information.
|
|
bool | operator< (const PortInfo &lhs, const PortInfo &rhs) |
| Overloaded relational operators that allow sorting PortInfo objects by their short name.
|
|
bool | operator<= (const PortInfo &lhs, const PortInfo &rhs) |
|
bool | operator> (const PortInfo &lhs, const PortInfo &rhs) |
|
bool | operator>= (const PortInfo &lhs, const PortInfo &rhs) |
|
Holds information about a port.
◆ PortInfo()
serial_port::PortInfo::PortInfo |
( |
const std::string & | long_name, |
|
|
const std::string & | short_name ) |
|
inline |
Constructor initializing info.
- Parameters
-
long_name | Long name of the port (same as short name on Linux) |
short_name | Short name of the port (e.g. "COM1" or "/dev/ttyS0") |
The documentation for this struct was generated from the following file: