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
Debug.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5namespace bot
6{
7 class Debug
8 {
9 private:
10 static std::string filePath;
11
12 public:
13 static std::fstream file;
14
18 Debug(std::string file);
19
23 ~Debug();
24
30 void debug(std::string msg, std::string type = "debug", bool show = true);
31
35 void clear();
36
41 std::string getFilePath();
42
47 bool isFileOpen();
48 };
49}
void clear()
Clear all the contents of the loaded file.
Definition Debug.cpp:70
static std::string filePath
Definition Debug.hpp:10
static std::fstream file
Definition Debug.hpp:13
bool isFileOpen()
Check if the file is open.
Definition Debug.cpp:81
std::string getFilePath()
Get the current file path of the set Debug
Definition Debug.cpp:79
Debug(std::string file)
Debug - Constructor.
Definition Debug.cpp:20
~Debug()
Debug - Deconstructor.
Definition Debug.cpp:34
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.
Definition Debug.cpp:37
Definition cli.cpp:17