Static Public Member Functions
Dashel::SerialPortEnumerator Class Reference

Serial port enumerator class. More...

#include <dashel.h>

List of all members.

Static Public Member Functions

static std::map< int,
std::pair< std::string,
std::string > > 
getPorts ()
 Retrieve list of all serial ports available on system.

Detailed Description

Serial port enumerator class.

This class is just a package for one static method.

Definition at line 180 of file dashel.h.


Member Function Documentation

std::map< int, std::pair< std::string, std::string > > Dashel::SerialPortEnumerator::getPorts ( ) [static]

Retrieve list of all serial ports available on system.

This function queries the Operating System for all available serial ports.

Returns:
A map where the key is the port number name as passed to the ser: protocol, and the value is a pair of the system device name and a human readable description that may be displayed in a user interface. All strings are encoded in UTF-8.

Definition at line 125 of file dashel-posix.cpp.


The documentation for this class was generated from the following files:


dashel
Author(s): Stéphane Magnenat
autogenerated on Thu Jan 2 2014 11:17:11