ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
filter_msg_buffer.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file filter_msg_buffer.h
1 #ifndef __FILTER_MSG_BUFFER_H__
2 #define __FILTER_MSG_BUFFER_H__
3 
4 
5 
6 #include "msg_buffer.h"
7 
8 #define ON 1
9 #define OFF 0
10 
17 class filter_msg_buffer : public msg_buffer {
18 
19 #ifndef __CINT__
20 protected:
22  int ***state;
26 #endif
27 
28 
29  // int state[MSG_TYPE_MAX][MSG_SOURCE_MAX][MSG_SEV_MAX];
30 
31 public:
32 
37  filter_msg_buffer (const int msglen=256);
38 
41  filter_msg_buffer (const int type_max, const int source_max,
42  const int sev_max, const int msglen=256);
43 
45  virtual ~filter_msg_buffer();
46 
48 
49  // mlp -- the pubsync is what's needed for the new
50  // iostream libraries - sync will no longer be a public method.
51  // for now we leave it as it was.
52 
53 
54  virtual int sync ();
55 
56 
63  virtual int set (const int msg_type,
64  const int msg_source,
65  const int msg_severity,
66  const int value = OFF);
67 
69  virtual int set_severity_below_threshold (const int threshold,
70  const int value =OFF);
71 
73  virtual int set_type (const int type,
74  const int value =OFF);
75 
77  virtual int set_source (const int source,
78  const int value =OFF);
79 
81  virtual int all_off();
82 
84  virtual int all_on();
85 
86 };
87 
88 
89 #endif /* __FILTER_MSG_BUFFER_H__ */