Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
ShutdownControl.hGo to the documentation of this file.00001 //-*-c++-*- 00002 #ifndef INCLUDED_ShutdownControl_h_ 00003 #define INCLUDED_ShutdownControl_h_ 00004 00005 #include "NullControl.h" 00006 00007 //! when activated, this will cause the aibo to shut down 00008 class ShutdownControl : public NullControl { 00009 public: 00010 00011 ShutdownControl() : NullControl("Shutdown","Turns the Aibo off") {} //!< constructor 00012 ShutdownControl(const std::string& n) : NullControl(n,"Turns the Aibo off") {} //!< constructor 00013 ShutdownControl(const std::string& n, const std::string& d) : NullControl(n,d) {} //!< constructor 00014 00015 virtual ControlBase * activate(MC_ID , Socket * ) { return doSelect(); } //!< calls doSelect() 00016 00017 //! shuts down 00018 virtual ControlBase * doSelect(); 00019 }; 00020 00021 /*! @file 00022 * @brief Describes ShutdownControl, which initiates the shutdown sequence 00023 * @author ejt (Creator) 00024 */ 00025 00026 #endif |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:58:51 2016 by Doxygen 1.6.3 |