fulladder.h

00001 /***************************************************************************
00002  *   Copyright (C) 2004 by David Saxton                                    *
00003  *   david@bluehaze.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #ifndef ECFullAdder_H
00012 #define ECFullAdder_H
00013 
00014 #include "component.h"
00015 #include "logic.h"
00016 
00020 class FullAdder : public CallbackClass, public Component
00021 {
00022 public:
00023         FullAdder( ICNDocument *icnDocument, bool newItem, const char *id = 0 );
00024         ~FullAdder();
00025         
00026         static Item* construct( ItemDocument *itemDocument, bool newItem, const char *id );
00027         static LibraryItem *libraryItem();
00028         virtual bool canFlip() const { return true; }
00029         
00030 protected:
00031         void inStateChanged( bool newState );
00032         
00033         LogicIn *ALogic, *BLogic, *inLogic;
00034         LogicOut *outLogic, *SLogic;
00035 };
00036 
00037 #endif

Generated on Tue May 8 17:05:30 2007 for KTechLab by  doxygen 1.5.1