Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::Logging::DefaultPrintPolicy Exception Referencefinal

default print policy for debug messages More...

#include <acts/blob/sPHENIX/Core/include/Acts/Utilities/Logger.hpp>

+ Inheritance diagram for Acts::Logging::DefaultPrintPolicy:
+ Collaboration diagram for Acts::Logging::DefaultPrintPolicy:

Public Member Functions

 DefaultPrintPolicy (std::ostream *out=&std::cout)
 constructor
 
void flush (const Level &lvl, const std::string &input) final
 flush the debug message to the destination stream
 
const std::string & name () const override
 
std::unique_ptr
< OutputPrintPolicy
clone (const std::string &name) const override
 
- Public Member Functions inherited from Acts::Logging::OutputPrintPolicy
virtual ~OutputPrintPolicy ()=default
 virtual default destructor
 

Private Attributes

std::ostream * m_out
 pointer to destination output stream
 

Detailed Description

default print policy for debug messages

This class allows to print debug messages without further modifications to a specified output stream.

Definition at line 554 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 554 of file Logger.hpp

Constructor & Destructor Documentation

Acts::Logging::DefaultPrintPolicy::DefaultPrintPolicy ( std::ostream *  out = &std::cout)
inlineexplicit

constructor

Parameters
[in]outpointer to output stream object
Precondition
out is non-zero

Definition at line 561 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 561 of file Logger.hpp

Member Function Documentation

std::unique_ptr<OutputPrintPolicy> Acts::Logging::DefaultPrintPolicy::clone ( const std::string &  name) const
inlineoverridevirtual

Make a copy of this print policy with a new name

Parameters
namethe new name
Returns
the copy

Implements Acts::Logging::OutputPrintPolicy.

Definition at line 595 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 595 of file Logger.hpp

References m_out.

void Acts::Logging::DefaultPrintPolicy::flush ( const Level lvl,
const std::string &  input 
)
inlinefinalvirtual

flush the debug message to the destination stream

Parameters
[in]lvldebug level of debug message
[in]inputtext of debug message

Implements Acts::Logging::OutputPrintPolicy.

Definition at line 567 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 567 of file Logger.hpp

References Acts::Logging::getFailureThreshold(), digitization_config::input, and Acts::Logging::levelName().

+ Here is the call graph for this function:

const std::string& Acts::Logging::DefaultPrintPolicy::name ( ) const
inlineoverridevirtual

Fulfill OutputPrintPolicy interface. This policy doesn't actually have a name, so the assumption is that somewhere in the decorator hierarchy, there is something that returns a name without delegating to a wrappee, before reaching this overload.

Note
This method will throw an exception
Returns
the name, but it never returns

Implements Acts::Logging::OutputPrintPolicy.

Definition at line 586 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 586 of file Logger.hpp

Member Data Documentation

std::ostream* Acts::Logging::DefaultPrintPolicy::m_out
private

pointer to destination output stream

Definition at line 599 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 599 of file Logger.hpp

Referenced by clone().


The documentation for this exception was generated from the following file: