μHAL (v2.7.9)
Part of the IPbus software repository
Public Member Functions | Static Public Member Functions | Private Types | List of all members
uhal::WarningLevel Class Reference

Helper struct representing the Warning log level to allow us to specialize functions according to their log level. More...

#include <uhal/log/LogLevels.hpp>

Inheritance diagram for uhal::WarningLevel:
[legend]
Collaboration diagram for uhal::WarningLevel:
[legend]

Public Member Functions

 WarningLevel (std::ostream &aStr=std::cout, Base::fPtr aHeadFunction=WarningLevel::colour_head, Base::fPtr aTailFunction=WarningLevel::colour_tail)
 
- Public Member Functions inherited from uhal::BaseLogLevel< WarningLevel >
WarningLeveloperator() ()
 
WarningLevelhead ()
 
WarningLeveltail ()
 
std::ostream & stream ()
 

Static Public Member Functions

static void colour_head (std::ostream &aStr)
 
static void colour_tail (std::ostream &aStr)
 

Private Types

typedef BaseLogLevel< WarningLevelBase
 

Additional Inherited Members

- Protected Types inherited from uhal::BaseLogLevel< WarningLevel >
typedef void(* fPtr) (std::ostream &aStr)
 
- Protected Member Functions inherited from uhal::BaseLogLevel< WarningLevel >
 BaseLogLevel (std::ostream &aStr, fPtr aHeadFunction, fPtr aTailFunction)
 

Detailed Description

Helper struct representing the Warning log level to allow us to specialize functions according to their log level.

Definition at line 115 of file LogLevels.hpp.

Member Typedef Documentation

◆ Base

Definition at line 117 of file LogLevels.hpp.

Constructor & Destructor Documentation

◆ WarningLevel()

uhal::WarningLevel::WarningLevel ( std::ostream &  aStr = std::cout,
Base::fPtr  aHeadFunction = WarningLevel::colour_head,
Base::fPtr  aTailFunction = WarningLevel::colour_tail 
)

Definition at line 64 of file LogLevels.cpp.

Member Function Documentation

◆ colour_head()

void uhal::WarningLevel::colour_head ( std::ostream &  aStr)
static

◆ colour_tail()

void uhal::WarningLevel::colour_tail ( std::ostream &  aStr)
static

Definition at line 74 of file LogLevels.cpp.


The documentation for this class was generated from the following files: