2#ifndef _uhal_log_LogLevels_hpp_ 
    3#define _uhal_log_LogLevels_hpp_ 
   15#define UHAL_LOG_INSERT_WARNING warning 
   17#define UHAL_LOG_INSERT_WARNING deprecated 
   25  void insert ( std::ostream& aStr , 
const U& aU )
 
   30  __attribute__ ( ( 
UHAL_LOG_INSERT_WARNING ( 
"Insertion of integer types can result in implicit casts. Consider using the Integer() formatter instead" ) ) )
 
   31  void 
insert ( 
std::ostream& aStr , const uint32_t& aUint ) ;
 
   33  __attribute__ ( ( 
UHAL_LOG_INSERT_WARNING ( "Insertion of integer types can result in implicit casts. Consider using the 
Integer() formatter instead" ) ) )
 
   34  void insert ( 
std::ostream& aStr , const int32_t& aInt );
 
   36  __attribute__ ( ( 
UHAL_LOG_INSERT_WARNING ( "Insertion of 
boolean types can result in implicit casts. Consider using the Boolean() formatter instead" ) ) )
 
   37  void insert ( 
std::ostream& aStr , const 
bool& aBool );
 
   40  template< typename T >
 
   44      typedef void ( *fPtr ) ( std::ostream& aStr );
 
   46      BaseLogLevel ( std::ostream& aStr , fPtr aHeadFunction , fPtr aTailFunction ) :
 
   48        mHeadFunction ( aHeadFunction ),
 
   49        mTailFunction ( aTailFunction )
 
   55        return static_cast<T&
> ( *this );
 
   60        mHeadFunction ( mStr );
 
   61        return static_cast<T&
> ( *this );
 
   66        mTailFunction ( mStr );
 
   67        return static_cast<T&
> ( *this );
 
#define UHAL_LOG_INSERT_WARNING
 
BaseLogLevel(std::ostream &aStr, fPtr aHeadFunction, fPtr aTailFunction)
 
void(* fPtr)(std::ostream &aStr)
 
Helper struct representing the Debug log level to allow us to specialize functions according to their...
 
static void colour_tail(std::ostream &aStr)
 
BaseLogLevel< DebugLevel > Base
 
static void colour_head(std::ostream &aStr)
 
Helper struct representing the Error log level to allow us to specialize functions according to their...
 
static void colour_tail(std::ostream &aStr)
 
static void colour_head(std::ostream &aStr)
 
BaseLogLevel< ErrorLevel > Base
 
Helper struct representing the Fatal log level to allow us to specialize functions according to their...
 
static void colour_head(std::ostream &aStr)
 
BaseLogLevel< FatalLevel > Base
 
static void colour_tail(std::ostream &aStr)
 
Helper struct representing the Info log level to allow us to specialize functions according to their ...
 
static void colour_tail(std::ostream &aStr)
 
BaseLogLevel< InfoLevel > Base
 
static void colour_head(std::ostream &aStr)
 
Helper struct representing the Notice log level to allow us to specialize functions according to thei...
 
static void colour_head(std::ostream &aStr)
 
static void colour_tail(std::ostream &aStr)
 
BaseLogLevel< NoticeLevel > Base
 
Helper struct representing the Warning log level to allow us to specialize functions according to the...
 
static void colour_head(std::ostream &aStr)
 
BaseLogLevel< WarningLevel > Base
 
static void colour_tail(std::ostream &aStr)
 
_Integer< T, IntFmt<> > Integer(const T &aT)
Forward declare a function which creates an instance of the ultra-lightweight wrapper from an integer...
 
void insert(std::ostream &aStr, const U &aU)