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

gadget::DeviceConstructorBase Class Reference

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

#include <DeviceConstructorBase.h>

Inheritance diagram for gadget::DeviceConstructorBase:

Inheritance graph
[legend]
List of all members.

Public Methods

 DeviceConstructorBase ()
 Constructor. More...

virtual InputcreateDevice (jccl::ConfigElementPtr element)
 Creates the device. More...

virtual std::string getElementType ()
 Gets the string desc 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 55 of file DeviceConstructorBase.h.


Constructor & Destructor Documentation

gadget::DeviceConstructorBase::DeviceConstructorBase   [inline]
 

Constructor.

Postcondition:
Device is registered.

Definition at line 62 of file DeviceConstructorBase.h.

00062 {;}


Member Function Documentation

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

Creates the device.

Reimplemented in gadget::DeviceConstructor.

Definition at line 65 of file DeviceConstructorBase.h.

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

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

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

Reimplemented in gadget::DeviceConstructor.

Definition at line 75 of file DeviceConstructorBase.h.

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


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