InscoperAPI/API/Base/Config/USBConnectionConfig.h¶
Namespaces¶
| Name |
|---|
| Inscoper Inscoper namespace. |
Classes¶
| Name | |
|---|---|
| class | Inscoper::USBConnectionConfig USBConnectionConfig class provides required information for USB devices configuration. |
Source code¶
#ifndef USBCONNECTIONCONFIG_H
#define USBCONNECTIONCONFIG_H
#include <Base/Config/ConnectionConfig.h>
namespace Inscoper {
class INSCOPER_EXPORT USBConnectionConfig : public Inscoper::ConnectionConfig {
public:
#ifndef SWIG
USBConnectionConfig(USBConnectionConfig const &) = delete;
USBConnectionConfig(USBConnectionConfig &&) = delete;
USBConnectionConfig &operator=(USBConnectionConfig const &) = delete;
USBConnectionConfig &operator=(USBConnectionConfig &&) = delete;
#endif
USBConnectionConfig();
void fromXML(Inscoper::XMLNode &connectionNode) INSCOPER_EXCEPTION override;
void toXML(Inscoper::XMLNode &xmlParent) INSCOPER_EXCEPTION override;
Inscoper::EConnectionType getType() override;
unsigned int getMatchBitField() const;
void setMatchBitField(unsigned int matchBitField);
unsigned short getVid() const;
void setVid(unsigned short vid);
unsigned short getPid() const;
void setPid(unsigned short pid);
const std::string &getManufacturer() const;
void setManufacturer(const std::string &manufacturer);
const std::string &getProduct() const;
void setProduct(const std::string &product);
const std::string &getSerialNumber() const;
void setSerialNumber(const std::string &serialNumber);
const std::string &getWaitingAns() const;
void setWaitingAns(const std::string &waitingAns);
unsigned char getNumInterface() const;
void setNumInterface(unsigned char numInterface);
unsigned short getSubDeviceTag() const;
void setSubDeviceTag(unsigned short subDeviceTag);
private:
unsigned int _matchBitField;
unsigned short _vid;
unsigned short _pid;
unsigned short _subDeviceTag;
std::string _manufacturer;
std::string _product;
std::string _serialNumber;
unsigned char _numInterface;
std::string _waitingAns;
};
typedef std::shared_ptr<USBConnectionConfig> USBConnectionConfigPtr;
} // namespace Inscoper
#endif // USBCONNECTIONCONFIG_H
Updated on 2026-09-03 at 12:14:17 +0200