YCLIMP
Yandex Command Line Interface Music Player
Loading...
Searching...
No Matches
Debug.hpp
1#pragma once
2
3#include <string>
4
11class Debug
12{
13public:
14 static void DrawMsg(const std::string& msg);
15 static void Draw(int posY, int posX);
16 static void Print(const std::string& msg, const std::string& filename = "");
17 static void Print(const std::wstring& msg);
18 static void Init();
19
20private:
21 static std::string message;
22};
The Debug class - Draw messages with ncurses or print them in debug file.
Definition Debug.hpp:12
static void DrawMsg(const std::string &msg)
Set message to draw.
Definition Debug.cpp:15
static void Draw(int posY, int posX)
Method that actually draws stuff with ncurses.
Definition Debug.cpp:21
static void Print(const std::string &msg, const std::string &filename="")
Method that prints message to the specified file.
Definition Debug.cpp:28