Go to the documentation of this file.
102 if (it->second.second && it->second.second(portInfo))
115 return portInfo.isUsb();
123 return !portInfo.isUsb() && !portInfo.isNetwork() && !portInfo.isBluetooth();
virtual CommunicatorTypeId portInfoToCommunicatorId(const XsPortInfo &portInfo) const
Match a XsPortInfo to a communicator.
virtual CommunicatorTypeId filenameToCommunicatorId(const XsString &filename) const
Match a filename to a communicator.
static const CommunicatorFactory::CommunicatorTypeId UNKNOWN
void registerCommunicatorTypes() override
Register the communicator types.
static const CommunicatorFactory::CommunicatorTypeId SERIALPORT
static const CommunicatorFactory::CommunicatorTypeId MTBFILE
static Communicator * construct()
Constructs new MtbFileCommunicator.
unsigned int CommunicatorTypeId
The typedef of the communicator type ID.
Contains a descriptor for opening a communication port to an Xsens device.
XdaCommunicatorFactory()
Construct this factory.
ConstructorsMap const & constructors() const
static Communicator * construct()
Constructs new SerialPortCommunicator.
static Communicator * construct()
Construct and returns new USB communicator.
static const CommunicatorFactory::CommunicatorTypeId USB
A 0-terminated managed string of characters.
bool registerType(CommunicatorTypeId typeId, CommunicatorConstructFunc constructFunc, PortInfoMatchFunc matchFunc)
Register a communicator type with the factory.