Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

gadget::BaseTypeConstructorBase Class Reference

Base class for virtual construction of devices. More...

#include <BaseTypeFactory.h>

Inheritance diagram for gadget::BaseTypeConstructorBase:

Inheritance graph
[legend]
List of all members.

Public Methods

 BaseTypeConstructorBase ()
 Constructor. More...

virtual InputcreateNetDevice (std::string baseType)
 Creates the device. More...

virtual std::string getBaseType ()
 Gets the name of the type of element we can create. More...


Detailed Description

Base class for virtual construction of devices.

Implementations of this class are registered with the device factory for each device in the system.

Definition at line 56 of file BaseTypeFactory.h.


Constructor & Destructor Documentation

gadget::BaseTypeConstructorBase::BaseTypeConstructorBase   [inline]
 

Constructor.

Postcondition:
Device is registered.

Definition at line 63 of file BaseTypeFactory.h.

00063 {;}


Member Function Documentation

virtual Input* gadget::BaseTypeConstructorBase::createNetDevice std::string    baseType [inline, virtual]
 

Creates the device.

Reimplemented in gadget::BaseTypeConstructor.

Definition at line 66 of file BaseTypeFactory.h.

00067    {
00068       boost::ignore_unused_variable_warning(baseType);
00069       vprDEBUG(vprDBG_ALL, vprDBG_CRITICAL_LVL) << "ERROR: DeviceConstructorBase::createDevice: Should never be called" << vprDEBUG_FLUSH;
00070       return NULL;
00071    }

virtual std::string gadget::BaseTypeConstructorBase::getBaseType   [inline, virtual]
 

Gets the name of the type of element we can create.

Reimplemented in gadget::BaseTypeConstructor.

Definition at line 74 of file BaseTypeFactory.h.

00075    {
00076       return std::string("BaseConstructor: Invalid type");
00077    }


The documentation for this class was generated from the following file:
Generated on Sun May 2 14:26:54 2004 for Gadgeteer by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002