Homepage Demos Overview Downloads Tutorials Reference
Credits

NullControl.h

Go to the documentation of this file.
00001 //-*-c++-*-
00002 #ifndef INCLUDED_NullControl_h_
00003 #define INCLUDED_NullControl_h_
00004 
00005 #include "ControlBase.h"
00006 
00007 //! when activated, this will return immediately  (handy for fake items in a menu)
00008 class NullControl : public ControlBase {
00009 public:
00010 
00011   //!Constructor
00012   NullControl() : ControlBase() {}
00013   //!Constructor
00014   NullControl(const std::string& n) : ControlBase(n) {}
00015   //!Constructor
00016   NullControl(const std::string& n, const std::string& d) : ControlBase(n,d) {}
00017 
00018   //@{
00019   //! returns NULL
00020   virtual ControlBase * activate(MotionManager::MC_ID , Socket * ) { return NULL; }
00021 
00022   virtual ControlBase * doSelect()    { return NULL; }
00023   virtual ControlBase * doNextItem()  { return NULL; }
00024   virtual ControlBase * doPrevItem()  { return NULL; }
00025   virtual ControlBase * doReadStdIn(const std::string& /*prompt*/=std::string()) { return NULL; }
00026   virtual ControlBase * takeInput(const std::string& /*msg*/) { return NULL; }
00027   //@}
00028 };
00029 
00030 /*! @file
00031  * @brief Defines NullControl, which does absolutely nothing (handy for fake items in a menu)
00032  * @author ejt (Creator)
00033  *
00034  * $Author: ejt $
00035  * $Name: tekkotsu-2_0 $
00036  * $Revision: 1.2 $
00037  * $State: Rel $
00038  * $Date: 2003/09/25 15:26:11 $
00039  */
00040 
00041 #endif

Tekkotsu v2.0
Generated Wed Jan 21 03:20:29 2004 by Doxygen 1.3.4