Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/QNX4/Train/Switch.hpp

Go to the documentation of this file.
00001 #ifndef __J2K__Train__Switch_HPP__
00002 #define __J2K__Train__Switch_HPP__
00003 
00004 #include <j2k/Fred/Basic.hpp>
00005 #include <j2k/Fred/Boolean.hpp>
00006 #include <j2k/Fred/StdTypes.hpp>
00007 #include <j2k/Fred/QNX/System.hpp>
00008 
00009 #define  OPEN    1       // * This is the switch position
00010 #define  CLOSE   0       //
00011 
00012 /*
00013                        = = = = = = = = =
00014                     //   ------------------> OPEN
00015                   //
00016                 //
00017      = = = = = = = = = * = = = = = = = = = = = =
00018                      ------------------> CLOSE
00019 
00020 */
00021  
00022 class Switch {
00023 public:
00024   Switch();                   // * Segment initialisation
00025   virtual ~Switch();          // * Segment de-initialisation
00026 
00027   void setSwitchID(int ID);   // * WARNING:  This function is
00028                               //   required to initialize the switch!
00029 
00030   void setSwitch(int P);      // * Set switch position: {OPEN,CLOSE}
00031   int  getSwitch();           // * Switch querry
00032 
00033 private:
00034   int SwitchPosition;         // * The position of the switch
00035   int Output;                 // * DEBUG:  To dummy terminal
00036   int SwitchID;               // * This is the switch identification
00037 
00038 };
00039 
00040 #endif

Generated on Sun Oct 14 18:46:43 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001