File indexing completed on 2025-08-02 08:21:01
0001 #ifndef __DAQ_DEVICE_FILENUMBERS__
0002 #define __DAQ_DEVICE_FILENUMBERS__
0003
0004
0005 #include <daq_device.h>
0006 #include <stdio.h>
0007 #include <string>
0008
0009 class daq_device_filenumbers: public daq_device {
0010
0011
0012 public:
0013
0014 daq_device_filenumbers (const int eventtype,
0015 const int subeventid, const char * fn,
0016 const int delete_flag = 0,
0017 const int maxlength = 256);
0018
0019
0020 ~daq_device_filenumbers();
0021
0022
0023 void identify(std::ostream& os = std::cout) const;
0024
0025 int max_length(const int etype) const;
0026
0027
0028
0029 int put_data(const int etype, int * adr, const int length);
0030
0031
0032 private:
0033 subevtdata_ptr sevt;
0034 unsigned int number_of_words;
0035 int m_eventType;
0036 int m_subeventid;
0037 std::string filename;
0038 int _maxlength;
0039 int _delete_flag;
0040 };
0041
0042
0043 #endif