CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
cond::persistency::EchoedLogStream< EdmLogger > Class Template Reference

#include <Logger.h>

Public Member Functions

 EchoedLogStream ()=delete
 
 EchoedLogStream (const std::string &jobName, std::stringstream &buffer)
 
template<typename T >
EchoedLogStreamoperator<< (const T &t)
 
EchoedLogStreamoperator<< (std::ostream &(*f)(std::ostream &))
 
EchoedLogStreamoperator<< (std::ios_base &(*f)(std::ios_base &))
 
virtual ~EchoedLogStream ()
 

Private Attributes

std::stringstream * m_buffer
 
EdmLogger m_edmLogger
 

Detailed Description

template<typename EdmLogger>
class cond::persistency::EchoedLogStream< EdmLogger >

Definition at line 27 of file Logger.h.

Constructor & Destructor Documentation

◆ EchoedLogStream() [1/2]

template<typename EdmLogger>
cond::persistency::EchoedLogStream< EdmLogger >::EchoedLogStream ( )
delete

◆ EchoedLogStream() [2/2]

template<typename EdmLogger>
cond::persistency::EchoedLogStream< EdmLogger >::EchoedLogStream ( const std::string &  jobName,
std::stringstream &  buffer 
)
inlineexplicit

Definition at line 30 of file Logger.h.

list jobName
Initialize all the variables.
std::stringstream * m_buffer
Definition: Logger.h:52

◆ ~EchoedLogStream()

template<typename EdmLogger>
virtual cond::persistency::EchoedLogStream< EdmLogger >::~EchoedLogStream ( )
inlinevirtual

Definition at line 32 of file Logger.h.

32 {}

Member Function Documentation

◆ operator<<() [1/3]

template<typename EdmLogger>
template<typename T >
EchoedLogStream& cond::persistency::EchoedLogStream< EdmLogger >::operator<< ( const T t)
inline

◆ operator<<() [2/3]

template<typename EdmLogger>
EchoedLogStream& cond::persistency::EchoedLogStream< EdmLogger >::operator<< ( std::ostream &(*)(std::ostream &)  f)
inline

Definition at line 39 of file Logger.h.

References f, cond::persistency::EchoedLogStream< EdmLogger >::m_buffer, and cond::persistency::EchoedLogStream< EdmLogger >::m_edmLogger.

39  {
40  *m_buffer << f;
41  m_edmLogger << f;
42  return *this;
43  }
double f[11][100]
std::stringstream * m_buffer
Definition: Logger.h:52

◆ operator<<() [3/3]

template<typename EdmLogger>
EchoedLogStream& cond::persistency::EchoedLogStream< EdmLogger >::operator<< ( std::ios_base &(*)(std::ios_base &)  f)
inline

Definition at line 44 of file Logger.h.

References f, cond::persistency::EchoedLogStream< EdmLogger >::m_buffer, and cond::persistency::EchoedLogStream< EdmLogger >::m_edmLogger.

44  {
45  *m_buffer << f;
46  m_edmLogger << f;
47  return *this;
48  }
double f[11][100]
std::stringstream * m_buffer
Definition: Logger.h:52

Member Data Documentation

◆ m_buffer

template<typename EdmLogger>
std::stringstream* cond::persistency::EchoedLogStream< EdmLogger >::m_buffer
private

◆ m_edmLogger

template<typename EdmLogger>
EdmLogger cond::persistency::EchoedLogStream< EdmLogger >::m_edmLogger
private