gadget::BaseTypeConstructorBase Class Reference

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

#include <gadget/Type/BaseTypeFactory.h>

Inheritance diagram for gadget::BaseTypeConstructorBase:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 BaseTypeConstructorBase ()
 Constructor.
virtual ~BaseTypeConstructorBase ()
virtual InputcreateNetDevice (std::string baseType)
 Creates the device.
virtual std::string getInputTypeName ()
 Gets the name of the type of element we can create.

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 57 of file BaseTypeFactory.h.


Constructor & Destructor Documentation

gadget::BaseTypeConstructorBase::BaseTypeConstructorBase (  )  [inline]

Constructor.

Postcondition:
Device is registered.

Definition at line 64 of file BaseTypeFactory.h.

00065    {;}

virtual gadget::BaseTypeConstructorBase::~BaseTypeConstructorBase (  )  [inline, virtual]

Definition at line 67 of file BaseTypeFactory.h.

00068    {;}


Member Function Documentation

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

Creates the device.

Reimplemented in gadget::BaseTypeConstructor< DEV >.

Definition at line 71 of file BaseTypeFactory.h.

Referenced by gadget::BaseTypeFactory::loadNetDevice().

00072    {
00073       boost::ignore_unused_variable_warning(baseType);
00074       vprDEBUG(vprDBG_ALL, vprDBG_CRITICAL_LVL)
00075          << "ERROR: DeviceConstructorBase::createDevice: Should never be called"
00076          << std::endl << vprDEBUG_FLUSH;
00077       return NULL;
00078    }

virtual std::string gadget::BaseTypeConstructorBase::getInputTypeName (  )  [inline, virtual]

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

Reimplemented in gadget::BaseTypeConstructor< DEV >.

Definition at line 81 of file BaseTypeFactory.h.

00082    {
00083       return std::string("BaseConstructor: Invalid type");
00084    }


The documentation for this class was generated from the following file:
Generated on Thu Jan 4 10:44:50 2007 for Gadgeteer by  doxygen 1.5.1