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
00015
00016
00017
00018
00019
00020
00021
00022 class Switch {
00023 public:
00024 Switch();
00025 virtual ~Switch();
00026
00027 void setSwitchID(int ID);
00028
00029
00030 void setSwitch(int P);
00031 int getSwitch();
00032
00033 private:
00034 int SwitchPosition;
00035 int Output;
00036 int SwitchID;
00037
00038 };
00039
00040 #endif