Jetpack documentation 1.0.0
Loading...
Searching...
No Matches
Warning Class Reference

A class for warnings. More...

#include <Logs.hpp>

Public Member Functions

 Warning (const std::string file="", const int line=0, const std::string func="")
 Constructor of the Warning.
 
 ~Warning ()
 Destructor of the Warning.
 
template<typename T >
Warningoperator<< (const T &message)
 Print a warning message.
 
Warningoperator<< (std::ostream &(*pf)(std::ostream &))
 Print a warning message.
 

Detailed Description

A class for warnings.

This class is used to print warning messages

Constructor & Destructor Documentation

◆ Warning()

Warning ( const std::string file = "",
const int line = 0,
const std::string func = "" )

Constructor of the Warning.

Parameters
fileThe file that contains the warning
lineThe line that contains the warning
funcThe function that contains the warning

Member Function Documentation

◆ operator<<() [1/2]

template<typename T >
Warning & operator<< ( const T & message)
inline

Print a warning message.

Parameters
messageThe message to print
Returns
Warning & The warning object

◆ operator<<() [2/2]

Warning & operator<< ( std::ostream &(* pf )(std::ostream &))

Print a warning message.

Parameters
pfThe message to print
Returns
Warning & The warning object

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