22 static class AliHLTTPCCANoDebugStream {
24 inline AliHLTTPCCANoDebugStream &operator<<( std::ostream &(*)(std::ostream &) ) {
return *
this; }
27 inline AliHLTTPCCANoDebugStream &operator<<(
const T & ) {
return *
this; }
28 } AliHLTTPCCANoDebugStreamInst;
31 template<
typename T>
inline void prepareForDebugOutput(
const typename T::Mask k, T *x0,
32 T *x1 = 0, T *x2 = 0, T *x3 = 0, T *x4 = 0, T *x5 = 0, T *x6 = 0, T *x7 = 0, T *x8 = 0, T *x9 = 0) {
33 if ( x0 ) ( *x0 )( k ) = T( 0 );
34 if ( x1 ) ( *x1 )( k ) = T( 0 );
35 if ( x2 ) ( *x2 )( k ) = T( 0 );
36 if ( x3 ) ( *x3 )( k ) = T( 0 );
37 if ( x4 ) ( *x4 )( k ) = T( 0 );
38 if ( x5 ) ( *x5 )( k ) = T( 0 );
39 if ( x6 ) ( *x6 )( k ) = T( 0 );
40 if ( x7 ) ( *x7 )( k ) = T( 0 );
41 if ( x8 ) ( *x8 )( k ) = T( 0 );
42 if ( x9 ) ( *x9 )( k ) = T( 0 );
44 #if DEBUG_MESSAGES & 1
45 inline std::ostream &debugS() {
return std::cerr; }
47 inline AliHLTTPCCANoDebugStream &debugS() {
return AliHLTTPCCANoDebugStreamInst; }
49 #if DEBUG_MESSAGES & 2
50 inline std::ostream &debugF() {
return std::cerr; }
52 inline AliHLTTPCCANoDebugStream &debugF() {
return AliHLTTPCCANoDebugStreamInst; }
54 #if DEBUG_MESSAGES & 4
55 inline std::ostream &debugKF() {
return std::cerr; }
57 inline AliHLTTPCCANoDebugStream &debugKF() {
return AliHLTTPCCANoDebugStreamInst; }
59 #if DEBUG_MESSAGES & 8
60 inline std::ostream &debugTS() {
return std::cerr; }
62 inline AliHLTTPCCANoDebugStream &debugTS() {
return AliHLTTPCCANoDebugStreamInst; }
64 #if DEBUG_MESSAGES & 16
65 inline std::ostream &debugWO() {
return std::cerr; }
67 inline AliHLTTPCCANoDebugStream &debugWO() {
return AliHLTTPCCANoDebugStreamInst; }
70 template<
typename T>
inline void prepareForDebugOutput(
const typename T::Mask, T *,
71 T * = 0, T * = 0, T * = 0, T * = 0, T * = 0, T * = 0, T * = 0, T * = 0, T * = 0) {}
72 inline AliHLTTPCCANoDebugStream &debugS() {
return AliHLTTPCCANoDebugStreamInst; }
73 inline AliHLTTPCCANoDebugStream &debugF() {
return AliHLTTPCCANoDebugStreamInst; }
74 inline AliHLTTPCCANoDebugStream &debugKF() {
return AliHLTTPCCANoDebugStreamInst; }
75 inline AliHLTTPCCANoDebugStream &debugTS() {
return AliHLTTPCCANoDebugStreamInst; }
76 inline AliHLTTPCCANoDebugStream &debugWO() {
return AliHLTTPCCANoDebugStreamInst; }