ICP  1
NeXusEventWriter.h
Go to the documentation of this file.
1 #ifndef NeXusEventWriter_H
2 #define NeXusEventWriter_H
3 
4 #include "NeXusEventCallback.h"
5 
6 class NeXusEventWriter : public ISIS::Base, public EventWriter
7 {
11 
12 public:
14  void start(const ISISCRPT_STRUCT* crpt, IXNeXusFile* file, bool create_empty);
15  void start(const ISISCRPT_STRUCT* crpt, bool create_empty);
16 
17  // EventWriter interface
18  virtual void start(int run_number, bool clear_counters);
19  virtual void wait();
20  virtual void stop(bool close_file);
21 
22 };
23 
24 class ICPEventWriter : public ISIS::Base
25 {
30  std::list<boost::signals2::connection> m_callbacks;
33 
34  void snapshotOld(const std::string& name);
35 public:
38  void setup(const ISISCRPT_STRUCT* crpt, ISISDAE* dae, int run_number_digits, DAEstatus& status);
39  void start();
40  void stop(bool delete_file = false);
41  std::string filename();
42  void snapshot(const std::string& name);
43 };
44 
45 #endif /* NeXusEventWriter_H */
virtual void wait()
std::string filename()
void start(const ISISCRPT_STRUCT *crpt, IXNeXusFile *file, bool create_empty)
DAEstatus * m_status
virtual void stop(bool close_file)
void stop(bool delete_file=false)
IXNeXusFile * m_file
void snapshotOld(const std::string &name)
static ISISDAE * dae
Definition: daeset.cpp:7
IXNeXusFile * m_file
void snapshot(const std::string &name)
void setup(const ISISCRPT_STRUCT *crpt, ISISDAE *dae, int run_number_digits, DAEstatus &status)
NeXusEventCallback * m_nxcallback
const ISISCRPT_STRUCT * m_crpt
NeXusEventCallback * m_nxcallback
std::list< boost::signals2::connection > m_callbacks