ChannelMappingService.h
Go to the documentation of this file.
1 // ChannelMappingService.h
2 
3 // David Adams
4 // December 2015
5 //
6 // Interface for a service that maps online to offline channels.
7 
8 #ifndef ChannelMappingService_H
9 #define ChannelMappingService_H
10 
11 #include <vector>
12 #include <iostream>
14 
16 
17 public:
18 
19  typedef unsigned int Channel;
20 
21  virtual ~ChannelMappingService() = default;
22 
23  // Map online to offline.
24  virtual Channel offline(Channel onlineChannel) const =0;
25 
26  // Map offline to online.
27  virtual Channel online(Channel offlineChannel) const =0;
28 
29  // Print parameters.
30  virtual std::ostream& print(std::ostream& out =std::cout, std::string prefix ="") const =0;
31 
32 };
33 
34 #ifndef __CLING__
37 #endif
38 
39 #endif
std::string string
Definition: nybbler.cc:12
virtual ~ChannelMappingService()=default
virtual Channel offline(Channel onlineChannel) const =0
#define DECLARE_ART_SERVICE_INTERFACE(svc, scope)
virtual std::ostream & print(std::ostream &out=std::cout, std::string prefix="") const =0
virtual Channel online(Channel offlineChannel) const =0