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

LOW_devUnknown.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002                           LOW_devUnknown.cpp  -  description
00003                              -------------------
00004     begin                : Sun Nov 9 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  
00019 #include "LOW_devUnknown.h"
00020 #include "LOW_deviceFactory.h"
00021 
00022 
00023 //=====================================================================================
00024 //
00025 // static initializer
00026 //
00027 
00028 const std::string LOW_devUnknown::familyName = "Unknown device type";
00029 
00030 int LOW_devUnknown::initHelper = initialize();
00031 int LOW_devUnknown::initialize()
00032 {
00033   LOW_deviceFactory::registerSpecificCtor( familyCode, &LOW_devUnknown::new_Instance);
00034   return 0;
00035 }
00036 
00037 
00038 
00039 //=====================================================================================
00040 //
00041 // static methods
00042 //
00043 
00044 LOW_device* LOW_devUnknown::new_Instance( LOW_netSegment &inNetSegment, const LOW_deviceID &inDevID)
00045 {
00046   return new LOW_devUnknown( inNetSegment, inDevID);
00047 }
00048 
00049 
00050 
00051 //=====================================================================================
00052 //
00053 // public constructors
00054 //
00055 
00056 LOW_devUnknown::LOW_devUnknown( LOW_netSegment &inSegment, const LOW_deviceID &inDevID) :
00057   LOW_device( inSegment, inDevID, inDevID.getFamilyCode()) // here we must fake the family code to satisfy the base class
00058 {
00059 }
00060 
00061 
00062 LOW_devUnknown::~LOW_devUnknown()
00063 {
00064 }

Generated on Tue Feb 3 11:30:25 2004 for OneWireLibrary++ by doxygen 1.3.2