OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::Utils::SerialPortInfo Struct Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/Utils/Serial.hpp>

Collaboration diagram for Slic3r::Utils::SerialPortInfo:

Public Member Functions

 SerialPortInfo ()
 SerialPortInfo (std::string port)
bool id_match (unsigned id_vendor, unsigned id_product) const

Public Attributes

std::string port
unsigned id_vendor = -1
unsigned id_product = -1
std::string friendly_name
bool is_printer = false

Detailed Description

Constructor & Destructor Documentation

◆ SerialPortInfo() [1/2]

Slic3r::Utils::SerialPortInfo::SerialPortInfo ( )
inline
23{}

◆ SerialPortInfo() [2/2]

Slic3r::Utils::SerialPortInfo::SerialPortInfo ( std::string port)
inline
24: port(port), friendly_name(std::move(port)) {}
std::string friendly_name
Definition Serial.hpp:20
std::string port
Definition Serial.hpp:17

References friendly_name, and port.

Member Function Documentation

◆ id_match()

bool Slic3r::Utils::SerialPortInfo::id_match ( unsigned id_vendor,
unsigned id_product ) const
inline
26{ return id_vendor == this->id_vendor && id_product == this->id_product; }
unsigned id_product
Definition Serial.hpp:19
unsigned id_vendor
Definition Serial.hpp:18

References id_product, and id_vendor.

Member Data Documentation

◆ friendly_name

std::string Slic3r::Utils::SerialPortInfo::friendly_name

◆ id_product

unsigned Slic3r::Utils::SerialPortInfo::id_product = -1

◆ id_vendor

unsigned Slic3r::Utils::SerialPortInfo::id_vendor = -1

◆ is_printer

bool Slic3r::Utils::SerialPortInfo::is_printer = false

◆ port

std::string Slic3r::Utils::SerialPortInfo::port

The documentation for this struct was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/Utils/Serial.hpp