A class for debugging.
More...
#include <Logs.hpp>
|
| | Debug (const std::string file="", const int line=0, const std::string func="") |
| | Constructor of the Debug.
|
| |
|
| ~Debug () |
| | Destructor of the Debug.
|
| |
| template<typename T > |
| Debug & | operator<< (const T &message) |
| | Print a debug message.
|
| |
| Debug & | operator<< (std::ostream &(*pf)(std::ostream &)) |
| | Print a debug message.
|
| |
|
| static void | point (const std::string file, const int line, const std::string func) |
| | Print a debug point.
|
| |
A class for debugging.
This class is used to print debug messages
◆ Debug()
| Debug |
( |
const std::string | file = "", |
|
|
const int | line = 0, |
|
|
const std::string | func = "" ) |
Constructor of the Debug.
- Parameters
-
| file | The file that contains the debug |
| line | The line that contains the debug |
| func | The function that contains the debug |
◆ operator<<() [1/2]
template<typename T >
| Debug & operator<< |
( |
const T & | message | ) |
|
|
inline |
Print a debug message.
- Parameters
-
| message | The message to print |
- Returns
- Debug & The debug object
◆ operator<<() [2/2]
| Debug & operator<< |
( |
std::ostream &(* | pf )(std::ostream &) | ) |
|
Print a debug message.
- Parameters
-
- Returns
- Debug & The debug object
◆ point()
| void point |
( |
const std::string | file, |
|
|
const int | line, |
|
|
const std::string | func ) |
|
static |
Print a debug point.
- Parameters
-
| file | The file that contains the debug point |
| line | The line that contains the debug point |
| func | The function that contains the debug point |
The documentation for this class was generated from the following files: