Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

VisualRoutinesBehavior.h

Go to the documentation of this file.
00001 //-*-c++-*-
00002 #ifndef INCLUDED_VisualRoutinesBehavior_h_
00003 #define INCLUDED_VisualRoutinesBehavior_h_
00004 
00005 #include "Behaviors/BehaviorBase.h"
00006 #include "DualCoding/VRmixin.h"
00007 
00008 namespace DualCoding {
00009 
00010 /*! @brief Base class from which visual-routines based behaviors
00011  *  (which all share a common SketchSpace) inherit */
00012 class VisualRoutinesBehavior : public BehaviorBase, public VRmixin {
00013 public:
00014   virtual void DoStart();
00015   virtual void DoStop();
00016   
00017 protected:
00018   //! constructor, @a name is used as both instance name and class name
00019   explicit VisualRoutinesBehavior(const std::string &name)
00020     : BehaviorBase(name), VRmixin()
00021   {}
00022   
00023   //! constructor, allows different initial values for class name and instance name
00024   VisualRoutinesBehavior(const std::string& classname, const std::string& instancename)
00025     : BehaviorBase(classname,instancename), VRmixin()
00026   {}
00027   
00028   //! destructor, does nothing
00029   virtual ~VisualRoutinesBehavior(void) {}
00030   
00031 private:
00032   // dummy functions to satisfy the compiler
00033   VisualRoutinesBehavior (const VisualRoutinesBehavior&);  //!< never call this
00034   VisualRoutinesBehavior& operator=(const VisualRoutinesBehavior&); //!< never call this
00035 };
00036 
00037 } // namespace
00038 
00039 #endif

DualCoding 4.0
Generated Thu Nov 22 00:52:37 2007 by Doxygen 1.5.4