NSCL DDAS  1.0
Support for XIA DDAS at the NSCL
 All Classes Namespaces Files Functions Variables Macros Pages
CMyEndCommand.h
1 #ifndef MYEND_H
2 #define MYEND_H
3 
4 #include <CEndCommand.h>
5 #include <tcl.h>
6 
7 class CTCLInterpreter;
8 class CTCLObject;
9 class CMyEventSegment;
10 
11 
12 class CMyEndCommand : public CEndCommand
13 {
14  public:
15  struct EndEvent {
16  Tcl_Event s_rawEvent;
17  CMyEndCommand* s_thisPtr;
18  };
19 
20 private:
21 
22 public:
23  // Constructors, destructors and other cannonical operations:
24 
25  CMyEndCommand(CTCLInterpreter& interp, CMyEventSegment *myevseg);
26  ~CMyEndCommand ();
27 
28 private:
29  CMyEndCommand(const CMyEndCommand& rhs);
30  CMyEndCommand& operator=(const CMyEndCommand &rhs);
31  int operator==(const CMyEndCommand& rhs) const;
32  int operator!=(const CMyEndCommand& rhs) const;
33 
34  CMyEventSegment *myeventsegment;
35  int NumModules;
36 
37  // Class operations:
38 public:
39  int transitionToInactive();
40  int readOutRemainingData();
41  int endRun();
42  void rescheduleEndTransition();
43  void rescheduleEndRead();
44  virtual int operator()(CTCLInterpreter& interp,
45  std::vector<CTCLObject>& objv);
46 
47 protected:
48  static int handleEndRun(Tcl_Event* pEvt, int flags);
49  static int handleReadOutRemainingData(Tcl_Event* pEvt, int flags);
50 
51 };
52 #endif
~CMyEndCommand()
Destructor.
Definition: CMyEndCommand.cpp:35
Definition: CMyEndCommand.h:15
Definition: CMyEventSegment.h:47
Definition: CMyEndCommand.h:12
CMyEndCommand(CTCLInterpreter &interp, CMyEventSegment *myevseg)
Default constructor.
Definition: CMyEndCommand.cpp:29