otsdaq_prepmodernization  v2_05_02_indev
BurstDataAndTimeSaverConsumer.h
1 #ifndef _ots_BurstDataAndTimeSaverConsumer_h_
2 #define _ots_BurstDataAndTimeSaverConsumer_h_
3 
4 // This is the basic example of a raw data saver plugin.
5 // It can be used as is and it will save the data taken from a buffer in binary format
6 // without adding anything extra. If you are planning on specializing any methods you
7 // should inherit from BurstDataAndTimeSaverConsumerBase the same way this consumer is
8 // doing.
9 
10 #include "otsdaq/DataManager/RawDataSaverConsumerBase.h"
11 
12 namespace ots
13 {
14 class BurstDataAndTimeSaverConsumer : public RawDataSaverConsumerBase
15 {
16  public:
17  BurstDataAndTimeSaverConsumer(std::string supervisorApplicationUID,
18  std::string bufferUID,
19  std::string processorUID,
20  const ConfigurationTree& theXDAQContextConfigTree,
21  const std::string& configurationPath);
22  virtual ~BurstDataAndTimeSaverConsumer(void);
23 
24  protected:
25  void writePacketHeader(const std::string& data) override;
26 };
27 }
28 
29 #endif