Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

LOW_portUsb_Factory.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002                           LOW_portUsb_Factory.cpp  -  description
00003                              -------------------
00004     begin                : Sun Oct 12 2003
00005     copyright            : (C) 2003 by Harald Roelle
00006     email                : roelle@informatik.uni-muenchen.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #include "LOW_portUsb_Factory.h"
00019 #include "LOW_portUsbDevice_Linux.h"
00020 
00021 
00022 //=====================================================================================
00023 //
00024 // constructors
00025 //
00026 
00027 LOW_portUsb_Factory::LOW_portUsb_Factory()
00028 {
00029 }
00030 
00031 
00032 LOW_portUsb_Factory::~LOW_portUsb_Factory()
00033 {
00034 }
00035 
00036 
00037 //=====================================================================================
00038 //
00039 // static factory
00040 //
00041 
00042 LOW_portUsbDevice* LOW_portUsb_Factory::new_portUsbDevice( const usbDeviceSpecifier_t inUsbDevSpec)
00043 {
00044 #ifdef __linux__
00045   return new LOW_portUsbDevice_Linux( inUsbDevSpec);
00046 #endif
00047 }
00048 
00049 
00050 LOW_portUsbDevice* LOW_portUsb_Factory::new_portUsbDevice( const LOW_portUsbDevice::usbVendorID_t inVendorID,
00051                                                            const LOW_portUsbDevice::usbProductID_t inProductID)
00052 {
00053 #ifdef __linux__
00054   return new LOW_portUsbDevice_Linux( inVendorID, inProductID);
00055 #endif
00056 }

Generated on Mon Oct 27 22:56:09 2003 by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001