Changeset 10657 for trunk/FACT++/src/DimErrorRedirecter.cc
- Timestamp:
- 05/11/11 10:27:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DimErrorRedirecter.cc
r10583 r10657 1 1 // ************************************************************************** 2 2 /** @class DimErrorRedirecter 3 4 @brief A base class taking care of padding, exit handler and error handlers 5 6 This class first switches off padding for the DimServer and the DimClient 7 (dis and dic). Furthermore, it redirects both error handlers to the 8 DimErrorRedirecter. Redirect the exit handler. 9 10 Only one instance of this class is allowed, since all Dim handlers are 11 global. 12 13 In the destructor of the class the handlers are correctly restored. 14 The padding setup is kept. 15 16 For FACT++ all Dim data is transmitted without padding! 17 18 To catch the error messages overwrite the errorHandler. The errorHandler 19 of the DimErrorRedirecter redirects the error messages to the logging 20 stream given in the constructor. 21 22 To catch the exit requests overwrite the exitHandler. 3 23 4 24 */ … … 15 35 int DimErrorRedirecter::cnt = 0; 16 36 37 // -------------------------------------------------------------------------- 38 // 39 //! - disable padding for dim server and dim client 40 //! - redirect DimClient error handler 41 //! - redirect DimServer error handler 42 //! - set exit handler of DimServer 43 // 17 44 DimErrorRedirecter::DimErrorRedirecter(MessageImp &imp) : fMsg(imp) 18 45 { … … 31 58 } 32 59 60 // -------------------------------------------------------------------------- 61 // 62 //! - reset DimClient error handler 63 //! - reset DimServer error handler 64 //! - reset exit handler of DimServer 65 // 33 66 DimErrorRedirecter::~DimErrorRedirecter() 34 67 {
Note:
See TracChangeset
for help on using the changeset viewer.