00001 // Inverter.h 00002 // 00003 // Setter Class that inverts its input value and sends it to the output 00004 /// \author Mike McCauley (mikem@open.com.au) 00005 /// 00006 // Copyright (C) 2010 Mike McCauley 00007 // $Id: Inverter.h,v 1.2 2010/06/28 00:56:10 mikem Exp $ 00008 00009 #ifndef Inverter_h 00010 #define Inverter_h 00011 00012 #include "Setter.h" 00013 00014 ///////////////////////////////////////////////////////////////////// 00015 /// \class Inverter Inverter.h <Inverter.h> 00016 /// \brief Setter object that inverts its value. 00017 /// 00018 /// Inverter inverts its input value and passes it the resulting value to the 00019 /// next Setter (the target) in the chain. 00020 class Inverter : public Setter 00021 { 00022 public: 00023 /// Input the value to be inverted 00024 /// \param[in] value The input value 00025 virtual void input(int value); 00026 00027 protected: 00028 00029 private: 00030 }; 00031 00032 #endif