AquinBot 1.0.2
Official AquinBot made by Team Aquin | Finaly a simple Open Source Discord bot made in C++ by Aquin
 
Loading...
Searching...
No Matches
bot::Debug Class Reference

#include <Debug.hpp>

Public Member Functions

 Debug (std::string file)
 Debug - Constructor.
 
 ~Debug ()
 Debug - Deconstructor.
 
void debug (std::string msg, std::string type="debug", bool show=true)
 Debug with an output in the console and appending it to the previously set file.
 
void clear ()
 Clear all the contents of the loaded file.
 
std::string getFilePath ()
 Get the current file path of the set Debug
 
bool isFileOpen ()
 Check if the file is open.
 

Static Public Attributes

static std::fstream file
 

Static Private Attributes

static std::string filePath
 

Constructor & Destructor Documentation

◆ Debug()

bot::Debug::Debug ( std::string file)

Debug - Constructor.

Parameters
`file`> Sets the current file for debugging

◆ ~Debug()

bot::Debug::~Debug ( )

Debug - Deconstructor.

Member Function Documentation

◆ clear()

void bot::Debug::clear ( )

Clear all the contents of the loaded file.

Clear - Function

◆ debug()

void bot::Debug::debug ( std::string msg,
std::string type = "debug",
bool show = true )

Debug with an output in the console and appending it to the previously set file.

debug - Function

Parameters
`msg`> Set the message and append it to stdout and to the previously set file
`type`> Set the type of the message, such as: debug, info, warn, error

◆ getFilePath()

std::string bot::Debug::getFilePath ( )

Get the current file path of the set Debug

Get file path - Function

Returns
std::string

◆ isFileOpen()

bool bot::Debug::isFileOpen ( )

Check if the file is open.

Is file open - Function

Returns
bool

Member Data Documentation

◆ file

std::fstream bot::Debug::file
static

◆ filePath

std::string bot::Debug::filePath
staticprivate

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