otsdaq_demo  v2_05_02_indev
FrontEndInterfaceTemplate.h
1 #ifndef _ots_FrontEndInterfaceTemplate_h_
2 #define _ots_FrontEndInterfaceTemplate_h_
3 
4 #include <map>
5 #include <string>
6 #include "otsdaq/DetectorWriter/FrontEndVirtualInterface.h"
7 
8 namespace ots
9 {
10 class FrontEndHardwareTemplate;
11 class FrontEndFirmwareTemplate;
12 
13 class FrontEndInterfaceTemplate : public FEVInterface
14 {
15  public:
16  FrontEndInterfaceTemplate(std::string name);
17 
18  virtual ~FrontEndInterfaceTemplate(void);
19 
20  void configure(void);
21  void halt(void);
22  void pause(void);
23  void resume(void);
24  void start(std::string runNumber);
25  void stop(void);
26  bool running(void);
27 
28  int universalRead(char* address, char* readValue) override;
29  void universalWrite(char* address, char* writeValue) override;
30 
31  protected:
32  FrontEndHardwareTemplate* theFrontEndHardware_;
33  FrontEndFirmwareTemplate* theFrontEndFirmware_;
34 };
35 }
36 
37 #endif