Project

General

Profile

0001-messagefacility-Remove-ELtsItem-template-function.patch

Ben Morgan, 09/09/2014 07:28 AM

View differences:

messagefacility/MessageService/ELtsErrorLog.h
103 103

  
104 104
};  // ELtsErrorLog
105 105

  
106

  
107
// ----------------------------------------------------------------------
108
// Message Continuation:
109
//  Global methods for physicists logging errors:
110
//   Basic streaming for non-integer types:
111
// ----------------------------------------------------------------------
112

  
113
template <class T>
114
inline void ELtsItem ( ELtsErrorLog & e, const T & t );
115

  
116 106
// ----------------------------------------------------------------------
117 107
// Message Continuation:
118 108
//   streaming for char []
messagefacility/MessageService/ELtsErrorLog.icc
13 13
namespace mf {
14 14
namespace service {
15 15

  
16

  
17
// ----------------------------------------------------------------------
18
// Message Continuation:
19
//  Global methods for physicists logging errors:
20
//   Basic streaming for non-integer types:
21
// ----------------------------------------------------------------------
22

  
23
template <class T>
24
void ELtsItem ( ELtsErrorLog & e, const T & t ) {
25
  if (e.e.discarding) return e;
26
  std::ostringstream  ost;
27
  ost << t << ' ';
28
  e.msg.eo_emit ( ost.str() );
29
}
30

  
31 16
// ----------------------------------------------------------------------
32 17
// Message Continuation:
33 18
//   streaming for char[]
34
-