-
Notifications
You must be signed in to change notification settings - Fork 0
/
ConsoleHelper.cpp
51 lines (41 loc) · 1.09 KB
/
ConsoleHelper.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include "ConsoleHelper.h"
void ConsoleHelper::Write(string message)
{
cout << message;
}
void ConsoleHelper::WriteLine(string message)
{
cout << message << endl;
}
void ConsoleHelper::Write(string message, string header)
{
cout << header << " " << message;
}
void ConsoleHelper::WriteLine(string message, string header)
{
cout << header << " " << message << endl;
}
void ConsoleHelper::WriteWarning(string message)
{
cout << "Внимание! " << message;
}
void ConsoleHelper::WriteLineWarning(string message)
{
cout << "Внимание! " << message << endl;
}
void ConsoleHelper::WriteError(string message)
{
cout << "Ошибка! Сообщение: " << message;
}
void ConsoleHelper::WriteLineError(string message)
{
cout << "Ошибка! Сообщение: " << message << endl;
}
void ConsoleHelper::WriteException(string message)
{
cout << "Исключение! Сообщение: " << message;
}
void ConsoleHelper::WriteLineException(string message)
{
cout << "Исключение! Сообщение: " << message << endl;
}