MessageFilter.h
Go to the documentation of this file.
1 #ifndef _RMS_MESSAGEFILTER_H
2 #define _RMS_MESSAGEFILTER_H
3 
4 #include <rms/base/RmsMessage.h>
5 
6 #include <boost/shared_ptr.hpp>
7 
8 namespace gov {
9 
10 namespace fnal {
11 
12 namespace cd {
13 
14 namespace rms {
15 
16 /**
17  * This interface is implemented by the Producer and Consumer
18  * classes. The result of the verify method is used to determine
19  * if a message is relevant to a particular Consumer or Producer.
20  *
21  * @author Kurt Biery
22  * @author Steve Foulkes
23  * @version $Revision: 1.1.1.1.18.1 $ $Date: 2019/09/27 00:07:31 $
24  */
25 
27  public:
28 
29  /**
30  * Virtual destructor to quiet compiler warnings.
31  */
32  virtual ~MessageFilter() {
33  return;
34  }
35 
36  /**
37  * Given an RmsMessage, verify that it matches the filter.
38  *
39  * @param message The message received from the provider
40  *
41  * @return True if the message matches the filter, false otherwise.
42  */
43  virtual bool verify(boost::shared_ptr<base::RmsMessage> message) {
44  return false;
45  }
46 };
47 
48 } // end of namespace rms
49 
50 } // end of namespace cd
51 
52 } // end of namespace fnal
53 
54 } // end of namespace gov
55 
56 #endif
virtual bool verify(boost::shared_ptr< base::RmsMessage > message)
Definition: MessageFilter.h:43
Definition: fnal.py:1
c cd(1)