Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
date_filter_msg_buffer Class Reference

#include <online_distribution/blob/master/newbasic/date_filter_msg_buffer.h>

+ Inheritance diagram for date_filter_msg_buffer:
+ Collaboration diagram for date_filter_msg_buffer:

Public Member Functions

 date_filter_msg_buffer (const int msglen=256)
 
 date_filter_msg_buffer (const int type_max, const int source_max, const int sev_max, const int msglen=256)
 
virtual ~date_filter_msg_buffer ()
 the virtual destructor
 
virtual int sync ()
 the sync function overrides the streambuf's sync function
 
- Public Member Functions inherited from filter_msg_buffer
 filter_msg_buffer (const int msglen=256)
 
 filter_msg_buffer (const int type_max, const int source_max, const int sev_max, const int msglen=256)
 
virtual ~filter_msg_buffer ()
 the virtual destructor
 
virtual int set (const int msg_type, const int msg_source, const int msg_severity, const int value=OFF)
 
virtual int set_severity_below_threshold (const int threshold, const int value=OFF)
 Globally set all messages below a certain severity threshold to ON or OFF.
 
virtual int set_type (const int type, const int value=OFF)
 Globally switch ON or OFF all messages of a certain type.
 
virtual int set_source (const int source, const int value=OFF)
 Globally switch ON or OFF all messages from a certain source.
 
virtual int all_off ()
 Globally switch all messages off.
 
virtual int all_on ()
 Globally switch all messages on.
 
- Public Member Functions inherited from msg_buffer
 msg_buffer (const int msglen=256)
 
virtual ~msg_buffer ()
 
virtual int overflow (int ch)
 

Additional Inherited Members

- Protected Member Functions inherited from msg_buffer
virtual char * format (int *length, msgProfile *mp)
 
- Protected Attributes inherited from filter_msg_buffer
STREAMBUForiginal_streambuf
 
int *** state
 
int msg_type_max
 
int msg_source_max
 
int msg_sev_max
 

Detailed Description

This is the "date\_filter" msg\_buffer class which allows you to

filter messages based on their profile. Itacts much like the filter_msg_buffer, but it also prepends a date tag to messages which have a profile.

Definition at line 17 of file date_filter_msg_buffer.h.

View newest version in sPHENIX GitHub at line 17 of file date_filter_msg_buffer.h

Constructor & Destructor Documentation

date_filter_msg_buffer::date_filter_msg_buffer ( const int  msglen = 256)

The msglen parameter specifies the initial length of the message string which is kept internally. If you exceed the length, it is automautically extended.

Definition at line 7 of file date_filter_msg_buffer.cc.

View newest version in sPHENIX GitHub at line 7 of file date_filter_msg_buffer.cc

date_filter_msg_buffer::date_filter_msg_buffer ( const int  type_max,
const int  source_max,
const int  sev_max,
const int  msglen = 256 
)

This constructor defines a custom-sized matrix of type/source/severities.

Definition at line 13 of file date_filter_msg_buffer.cc.

View newest version in sPHENIX GitHub at line 13 of file date_filter_msg_buffer.cc

date_filter_msg_buffer::~date_filter_msg_buffer ( )
virtual

the virtual destructor

Definition at line 24 of file date_filter_msg_buffer.cc.

View newest version in sPHENIX GitHub at line 24 of file date_filter_msg_buffer.cc

Member Function Documentation

int date_filter_msg_buffer::sync ( )
virtual

the sync function overrides the streambuf's sync function

Reimplemented from filter_msg_buffer.

Definition at line 30 of file date_filter_msg_buffer.cc.

View newest version in sPHENIX GitHub at line 30 of file date_filter_msg_buffer.cc

References msg_buffer::format(), G4PLUGDOOR::length, filter_msg_buffer::original_streambuf, msg_buffer::pos, msgProfile::severity, msgProfile::source, filter_msg_buffer::state, streambuf_add_date(), msgProfile::type, and ambiguity_solver_full_chain::x.

+ Here is the call graph for this function:


The documentation for this class was generated from the following files: