KisaragiLibrary
 
読み取り中…
検索中…
一致する文字列を見つけられません
Debug.hpp
[詳解]
1#pragma once
2
3/**
4 * @file Debug.hpp
5 * @brief DebugConsole操作クラス
6 * @author 樺澤陽向
7 * @date 2025/05/07
8 * @since 1.0.0
9 *
10 */
11
12#include <memory>
13#include<string>
14
15namespace Kisaragi_Lib
16{
17 /// <summary>
18 /// Debug用コンソール操作クラス
19 /// </summary>
20 class Debug
21 {
22 public:
23 Debug();
24
25 /// <summary>
26 /// コンソールクリア
27 /// </summary>
28 void Clear();
29
30 /// <summary>
31 /// コンソール出力(改行なし)
32 /// </summary>
33 /// <param name="_in">出力する文字列</param>
34 void Print(const std::string _in);
35
36 /// <summary>
37 /// コンソール出力(改行あり)
38 /// </summary>
39 /// <param name="_in">出力する文字列</param>
40 void PrintLine(const std::string _in);
41
42 /// <summary>
43 /// 警告用コンソール出力(文字色しか変わらない)
44 /// </summary>
45 /// <param name="_in">出力する文字列</param>
46 void PrintWarning(const std::string _in);
47
48 /// <summary>
49 /// エラー出力用コンソール出力(文字色しか変わらない)
50 /// </summary>
51 /// <param name="_in">出力する文字列</param>
52 void PrintAssert(const std::string _in);
53
54#pragma region static版のメソッド
55 /// <summary>
56 /// コンソールクリア
57 /// </summary>
58 static void ClearStatic();
59
60 /// <summary>
61 /// コンソール出力(改行なし)
62 /// </summary>
63 /// <param name="_in">出力する文字列</param>
64 static void PrintStatic(const std::string _in);
65
66 /// <summary>
67 /// コンソール出力(改行あり)
68 /// </summary>
69 /// <param name="_in">出力する文字列</param>
70 static void PrintLineStatic(const std::string _in);
71
72 /// <summary>
73 /// 警告用コンソール出力(文字色しか変わらない)
74 /// </summary>
75 /// <param name="_in">出力する文字列</param>
76 static void PrintWarningStatic(const std::string _in);
77
78 /// <summary>
79 /// エラー出力用コンソール出力(文字色しか変わらない)
80 /// </summary>
81 /// <param name="_in">出力する文字列</param>
82 static void PrintAssertStatic(const std::string _in);
83#pragma endregion
84
85
86 private:
87 /// <summary>
88 /// 実際の処理を行う内部クラス
89 /// </summary>
90 class Debug_Impl;
91 std::weak_ptr<Debug_Impl> ptr;
92 };
93}
Definition Debug.cpp:12
void Clear()
コンソールクリア
Definition Debug.cpp:106
void Print(const std::string _in)
コンソール出力(改行なし)
Definition Debug.cpp:111
static void PrintStatic(const std::string _in)
コンソール出力(改行なし)
Definition Debug.cpp:137
static void ClearStatic()
コンソールクリア
Definition Debug.cpp:132
Debug()
Definition Debug.cpp:101
std::weak_ptr< Debug_Impl > ptr
Definition Debug.hpp:91
static void PrintAssertStatic(const std::string _in)
エラー出力用コンソール出力(文字色しか変わらない)
Definition Debug.cpp:152
void PrintWarning(const std::string _in)
警告用コンソール出力(文字色しか変わらない)
Definition Debug.cpp:121
static void PrintLineStatic(const std::string _in)
コンソール出力(改行あり)
Definition Debug.cpp:142
static void PrintWarningStatic(const std::string _in)
警告用コンソール出力(文字色しか変わらない)
Definition Debug.cpp:147
void PrintAssert(const std::string _in)
エラー出力用コンソール出力(文字色しか変わらない)
Definition Debug.cpp:126
void PrintLine(const std::string _in)
コンソール出力(改行あり)
Definition Debug.cpp:116
Definition Accessor.hpp:110