Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-02 08:21:01

0001 #ifndef __DAQ_DEVICE_COMMAND__
0002 #define __DAQ_DEVICE_COMMAND__
0003 
0004 
0005 #include <daq_device.h>
0006 #include <stdio.h>
0007 #include <string>
0008 
0009 class daq_device_command: public  daq_device {
0010 
0011 
0012 public:
0013 
0014   daq_device_command (const int eventtype,
0015               const int subeventid,
0016               const char *command,
0017               const int verbose = 0);
0018 
0019 
0020   ~daq_device_command();
0021 
0022 
0023   void identify(std::ostream& os = std::cout) const;
0024 
0025   int max_length(const int etype) const { return 0;};
0026 
0027   // functions to do the work
0028 
0029   int put_data(const int etype, int * adr, const int length);
0030 
0031 private:
0032   subevtdata_ptr sevt;
0033   int m_eventType;
0034   int m_subeventid;
0035   std::string _command;
0036   int _verbose;
0037 
0038 };
0039 
0040 
0041 #endif