AdcChannelDataCopyService.h
Go to the documentation of this file.
1 // AdcChannelDataCopyService.h
2 
3 #ifndef AdcChannelDataCopyService_H
4 #define AdcChannelDataCopyService_H
5 
6 // David Adams
7 // September 2016
8 //
9 // Interface for a service that copies AdcChannelData.
10 
11 #include <iostream>
13 
15 
16 public:
17 
18  virtual ~AdcChannelDataCopyService() = default;
19 
20  // Copy the data from one AdcChannelData object to another.
21  // Returns nonzero for error.
22  virtual int copy(const AdcChannelData& oldacd, AdcChannelData& newacd) const =0;
23 
24  // Print parameters.
25  virtual std::ostream& print(std::ostream& out =std::cout, std::string prefix ="") const =0;
26 
27 };
28 
29 #ifndef __CLING__
32 #endif
33 
34 #endif
std::string string
Definition: nybbler.cc:12
virtual int copy(const AdcChannelData &oldacd, AdcChannelData &newacd) const =0
virtual ~AdcChannelDataCopyService()=default
virtual std::ostream & print(std::ostream &out=std::cout, std::string prefix="") const =0
#define DECLARE_ART_SERVICE_INTERFACE(svc, scope)