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

gadget::ProxyDepChecker Class Reference

Dependency checker for Proxies. More...

#include <ProxyDepChecker.h>

List of all members.

Public Methods

 ProxyDepChecker ()
virtual std::string getCheckerName ()
 Returns a string name of the checker. More...

virtual bool canHandle (jccl::ConfigElementPtr element)
virtual bool depSatisfied (jccl::ConfigElementPtr element)
 Are the dependencies satisfied? Defaults to all being handled for it. More...

virtual void debugOutDependencies (jccl::ConfigElementPtr element, int dbg_lvl=vprDBG_WARNING_LVL)
 Writes out the dependencies to the vprDEBUG macro. More...


Detailed Description

Dependency checker for Proxies.

Definition at line 48 of file ProxyDepChecker.h.


Constructor & Destructor Documentation

gadget::ProxyDepChecker::ProxyDepChecker   [inline]
 

Definition at line 51 of file ProxyDepChecker.h.

00052    {;}


Member Function Documentation

virtual std::string gadget::ProxyDepChecker::getCheckerName   [inline, virtual]
 

Returns a string name of the checker.

This is used to output messages in checker listings.

Definition at line 58 of file ProxyDepChecker.h.

00059    { return std::string("gadget::ProxyChecker Checker"); }

bool gadget::ProxyDepChecker::canHandle jccl::ConfigElementPtr    element [virtual]
 

Definition at line 46 of file ProxyDepChecker.cpp.

00047 {
00048    std::string element_type(element->getID());
00049 
00050    bool ret_val;
00051    ret_val = ((element_type == AnalogProxy::getElementType()) ||
00052               (element_type == DigitalProxy::getElementType()) ||
00053               (element_type == GestureProxy::getElementType()) ||
00054               (element_type == GloveProxy::getElementType()) ||
00055               (element_type == EventWindowProxy::getElementType()) ||
00056               (element_type == PositionProxy::getElementType()));
00057 
00058    return ret_val;
00059 }

virtual bool gadget::ProxyDepChecker::depSatisfied jccl::ConfigElementPtr    element [inline, virtual]
 

Are the dependencies satisfied? Defaults to all being handled for it.

Definition at line 68 of file ProxyDepChecker.h.

00069    {
00070       boost::ignore_unused_variable_warning(element);
00071       return true;
00072    }

virtual void gadget::ProxyDepChecker::debugOutDependencies jccl::ConfigElementPtr    element,
int    dbg_lvl = vprDBG_WARNING_LVL
[inline, virtual]
 

Writes out the dependencies to the vprDEBUG macro.

Definition at line 75 of file ProxyDepChecker.h.

00077    {
00078       jccl::DepChecker::debugOutDependencies(element, dbg_lvl);
00079       vprDEBUG_NEXT_BEGIN(vprDBG_ALL,dbg_lvl)
00080          << "Proxies should never have dependencies!!!" << vprDEBUG_FLUSH;
00081    }


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