00001 /* $Id: GoNogo.h,v 1.6 2005/05/10 17:08:02 pfb Exp $ */ 00002 00003 #ifndef _GoNogo_h 00004 #define _GoNogo_h 00005 00010 #include "../../Observer/Subject.h" 00011 00019 class GoNogo : public Subject 00020 { 00021 //============================================================================= 00022 public: 00028 GoNogo(bool ok = true, bool go = true); 00029 00033 virtual ~GoNogo(); 00034 00039 virtual bool ok() const; 00040 00045 virtual bool go() const; 00046 00050 virtual void reset(); 00051 00055 virtual void resetGoNogo(); 00056 00060 virtual void resetOk(); 00061 00062 //============================================================================ 00063 protected: 00064 00068 void notOk(); 00069 00073 void noGo(); 00074 00075 //============================================================================ 00076 private: 00077 00078 bool _ok; 00079 bool _go; 00080 }; 00081 00082 //============================================================================== 00083 // 00084 // $Log: GoNogo.h,v $ 00085 // Revision 1.6 2005/05/10 17:08:02 pfb 00086 // Added module info. 00087 // 00088 // Revision 1.5 2003/07/09 16:17:04 pfb 00089 // Changed the semantics of resetOk(). 00090 // 00091 // Revision 1.4 2003/07/09 16:11:58 pfb 00092 // Removed Go(0 and Ok(). 00093 // 00094 // Revision 1.3 2003/07/09 14:23:43 pfb 00095 // Added Go() and Ok(). 00096 // 00097 // Revision 1.2 2003/02/26 06:47:49 pfb 00098 // Work over of the guard defines. 00099 // 00100 // Revision 1.1 2002/04/11 07:14:51 pfb 00101 // Moved from Go. Seems that Go is bad news for some compilers. 00102 // 00103 // Revision 1.1 2002/04/11 06:46:33 pfb 00104 // Initial rev in this tree. Moved from another project to here. (Need a common 00105 // progect!) 00106 // 00107 // Revision 1.1 1999/12/20 09:37:01 pfb 00108 // Initial revision 00109 // 00110 // 00111 //============================================================================== 00112 00116 #endif