portlist.cpp
Go to the documentation of this file.
00001 #include <dashel/dashel.h>
00002 #include <iostream>
00003 
00004 using namespace Dashel;
00005 
00006 int main()
00007 {
00008         std::map<int, std::pair<std::string, std::string> > ports = SerialPortEnumerator::getPorts();
00009 
00010         for(std::map<int, std::pair<std::string, std::string> >::iterator it = ports.begin(); it != ports.end(); ++it)
00011         {
00012                 std::cout << "(" << it->first << ") " << it->second.first << " [" << it->second.second << "]" << std::endl;
00013         }
00014 
00015 
00016         return 0;
00017 }


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