NSCL DDAS 12.2-009
Support for XIA DDAS at FRIB
CMyEndCommand.h
Go to the documentation of this file.
1
6#ifndef MYEND_H
7#define MYEND_H
8
9#include <tcl.h>
10
11#include <CEndCommand.h>
12
13class CTCLInterpreter;
14class CTCLObject;
15class CMyEventSegment;
16class CExperiment;
17
23class CMyEndCommand : public CEndCommand {
24public:
26 struct EndEvent {
27 Tcl_Event s_rawEvent;
29 };
30
31private:
32 CMyEventSegment *m_pSeg;
33 CExperiment *m_pExp;
34 int m_nModules;
35
36public:
43 CMyEndCommand(CTCLInterpreter &interp, CMyEventSegment *pSeg,
44 CExperiment *pExp);
47
48private:
53 CMyEndCommand(const CMyEndCommand &rhs);
59 CMyEndCommand &operator=(const CMyEndCommand &rhs);
64 int operator==(const CMyEndCommand &rhs) const;
69 int operator!=(const CMyEndCommand &rhs) const;
70
71 // Class operations:
72public:
75 int endRun();
77 void rescheduleEndRead();
78 virtual int operator()(CTCLInterpreter &interp,
79 std::vector<CTCLObject> &objv);
80
81protected:
82 static int handleEndRun(Tcl_Event *pEvt, int flags);
83 static int handleReadOutRemainingData(Tcl_Event *pEvt, int flags);
84};
85#endif
Provides an end command to override the SBS one.
Definition: CMyEndCommand.h:23
void rescheduleEndTransition()
Definition: CMyEndCommand.cpp:271
static int handleEndRun(Tcl_Event *pEvt, int flags)
Definition: CMyEndCommand.cpp:315
int transitionToInactive()
Definition: CMyEndCommand.cpp:50
static int handleReadOutRemainingData(Tcl_Event *pEvt, int flags)
Definition: CMyEndCommand.cpp:328
~CMyEndCommand()
Destructor.
Definition: CMyEndCommand.cpp:35
CMyEndCommand(CTCLInterpreter &interp, CMyEventSegment *pSeg, CExperiment *pExp)
Constructor.
Definition: CMyEndCommand.cpp:29
int endRun()
Definition: CMyEndCommand.cpp:226
virtual int operator()(CTCLInterpreter &interp, std::vector< CTCLObject > &objv)
Definition: CMyEndCommand.cpp:291
int readOutRemainingData()
Definition: CMyEndCommand.cpp:123
void rescheduleEndRead()
Definition: CMyEndCommand.cpp:278
Derived class for DDAS event segments.
Definition: CMyEventSegment.h:35
Struct encapsulating the command and Tcl event to end the run.
Definition: CMyEndCommand.h:26
CMyEndCommand * s_thisPtr
Pointer to this command.
Definition: CMyEndCommand.h:28
Tcl_Event s_rawEvent
Generic event for the Tcl event system.
Definition: CMyEndCommand.h:27