My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
TransactionStatus.h
Go to the documentation of this file.
1 // $Id: TransactionStatus.h,v 1.1.1.1 2009/07/06 23:57:07 eml Exp $
2 
3 #ifndef GCP_CONTROL_TRANSACTIONSTATUS_H
4 #define GCP_CONTROL_TRANSACTIONSTATUS_H
5 
15 namespace gcp {
16  namespace control {
17 
19  public:
20 
21  enum {
22  TRANS_FRAME,
23  TRANS_GRAB,
24  TRANS_PMAC,
25  TRANS_BENCH,
26  TRANS_MARK,
27  TRANS_SCAN,
28  TRANS_SETREG,
29  TRANS_TVOFF,
30  TRANS_SCRIPT,
31  TRANS_LAST // This should always come last
32  };
33 
34  struct Transaction {
35 
36  unsigned seq_; // The sequence number of the last positioning
37  // command sent to the caltert module
38  unsigned done_; // A bitmask of completion status for all
39  // antennas. Each bit will be set to 1 when the
40  // corresponding antenna has completed
41 
42  Transaction();
43  };
44 
49 
53  virtual ~TransactionStatus();
54 
55  // Return the completion status of the requested transaction
56 
57  virtual unsigned int& done(unsigned transId);
58 
59  virtual const unsigned int seq(unsigned transId);
60 
61  // Return the next sequence number
62 
63  virtual unsigned nextSeq(unsigned transId);
64 
65  protected:
66 
67  Transaction frame_;
68  Transaction grab_;
69  Transaction pmac_;
70  Transaction bench_;
71  Transaction mark_;
72  Transaction scan_;
73  Transaction setreg_;
74  Transaction tvoff_;
75  Transaction script_;
76 
77  }; // End class TransactionStatus
78 
79  } // End namespace control
80 } // End namespace gcp
81 
82 
83 
84 #endif // End #ifndef GCP_CONTROL_TRANSACTIONSTATUS_H
Definition: TransactionStatus.h:34
virtual unsigned int & done(unsigned transId)
Definition: TransactionStatus.c:31
Transaction()
Definition: TransactionStatus.c:23
virtual unsigned nextSeq(unsigned transId)
Definition: TransactionStatus.c:107
TransactionStatus()
Definition: TransactionStatus.c:13
Definition: TransactionStatus.h:18
virtual ~TransactionStatus()
Definition: TransactionStatus.c:18
virtual const unsigned int seq(unsigned transId)
Definition: TransactionStatus.c:69