cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches

Placeholder for debugging messages if logging threshold is not reached. More...

#include <CepGen/Utils/Message.h>

+ Inheritance diagram for NullStream:
+ Collaboration diagram for NullStream:

Public Member Functions

 NullStream ()=default
 Empty constructor.
 
 NullStream (const LoggedMessage &)
 Empty constructor.
 
void dump (std::ostream *os=nullptr) const override
 Dump the full exception information in a given output stream.
 
template<class T >
NullStreamoperator<< (const T &)
 Stream operator (null and void)
 
template<typename T >
NullStreamlog (T &&)
 Lambda function handler (null and void)
 
 Message ()=default
 Generic message constructor.
 

Static Public Member Functions

static std::string now ()
 Human-readable date/time.
 

Detailed Description

Date
Apr 2018

Definition at line 186 of file Message.h.

Constructor & Destructor Documentation

◆ NullStream() [1/2]

NullStream ( )
default

◆ NullStream() [2/2]

NullStream ( const LoggedMessage )

Definition at line 191 of file Message.h.

Member Function Documentation

◆ dump()

void dump ( std::ostream *  os = nullptr) const
overridevirtual
Parameters
[in,out]osthe output stream where the information is dumped

Implements Message.

Definition at line 192 of file Message.h.

◆ log()

template<typename T >
NullStream & log ( T &&  )

Definition at line 200 of file Message.h.

◆ Message()

Message ( )
explicitdefault

◆ now()

std::string now ( )
staticinherited

Definition at line 23 of file Message.cpp.

◆ operator<<()

template<class T >
NullStream & operator<< ( const T &  )

Definition at line 195 of file Message.h.