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

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

Go to the documentation of this file.
00001 #ifndef __J2K__Train__Segment_HPP__
00002 #define __J2K__Train__Segment_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           Previous  ------------------>  Next
00014      = = = = = = = = = * = = = = = = = = = * = = = = = = = = = =
00015                |                   |
00016                |<----------------->|
00017                    Track Segment
00018 */
00019 
00020 class Segment
00021 {
00022 public:
00023   Segment();                   // * Initialize segment
00024 
00025   void setSegmentID(int ID);   // * Set segment ID
00026   int  getSegmentID();         // * Get segment ID
00027   int  isOccupied();           // * Track segment querry
00028 
00029   void setNext( int SegmentID );
00030   void setPrev( int SegmentID );
00031 
00032   int  getNext();
00033   int  getPrev();
00034 
00035 private:
00036   int SegmentID;               // * Segment Identification 1-16
00037   int Next;
00038   int Prev;
00039   int Port_Value;              // * Port byte value 
00040   int Port_Address;            // * This is the port address
00041 
00042   int mask( int bit );         // * This computes a power of 2
00043 };
00044 
00045 #endif

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