gadget::DeviceConstructorBase Class Reference

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

#include <gadget/Type/DeviceConstructorBase.h>

Inheritance diagram for gadget::DeviceConstructorBase:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 DeviceConstructorBase ()
 Constructor.
virtual ~DeviceConstructorBase ()
virtual InputcreateDevice (jccl::ConfigElementPtr element)
 Creates the device.
virtual std::string getElementType ()
 Gets the string desc 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 56 of file DeviceConstructorBase.h.


Constructor & Destructor Documentation

gadget::DeviceConstructorBase::DeviceConstructorBase (  )  [inline]

Constructor.

Postcondition:
Device is registered.

Definition at line 63 of file DeviceConstructorBase.h.

00064    {;}

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

Definition at line 66 of file DeviceConstructorBase.h.

00067    {;}


Member Function Documentation

virtual Input* gadget::DeviceConstructorBase::createDevice ( jccl::ConfigElementPtr  element  )  [inline, virtual]

Creates the device.

Reimplemented in gadget::DeviceConstructor< DEV >.

Definition at line 70 of file DeviceConstructorBase.h.

Referenced by gadget::DeviceFactory::loadDevice().

00071    {
00072       boost::ignore_unused_variable_warning(element);
00073       vprDEBUG(vprDBG_ALL, vprDBG_CRITICAL_LVL)
00074          << "ERROR: DeviceConstructorBase::createDevice: Should never be called\n"
00075          << vprDEBUG_FLUSH;
00076       return NULL;
00077    }

virtual std::string gadget::DeviceConstructorBase::getElementType (  )  [inline, virtual]

Gets the string desc of the type of element we can create.

Reimplemented in gadget::DeviceConstructor< DEV >.

Definition at line 80 of file DeviceConstructorBase.h.

Referenced by gadget::DeviceFactory::registerDevice().

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


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