/
lyapdy
/
Object_oriented_programming_cpp_318
Обзор
Документация
Войти
/
lyapdy
/
Object_oriented_programming_cpp_318
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lab7/task_4.h
45 строк
1 KB
danillyapunov
tasks 7 and 8 added
30 ноя 2025, 14:31
30 ноя 2025, 14:31
5a9b53a
Код
Авторство
О чём код?
#ifndef TASK_4_H #define TASK_4_H #include <string> #include <vector> class MyMessage { private: std::vector<std::string> messages; bool showEmergency; bool showError; bool showWarning; bool showSystemInfo; bool showServiceInfo; bool showDebug; public: MyMessage(); // ��⮤� ��� ����ன�� �⮡ࠦ���� ᮮ�饭�� void setShowEmergency(bool show); void setShowError(bool show); void setShowWarning(bool show); void setShowSystemInfo(bool show); void setShowServiceInfo(bool show); void setShowDebug(bool show); // ��⮤� ��� �뢮�� ᮮ�饭�� void emergency(const std::string& message, const std::string& function = ""); void error(const std::string& message, const std::string& function = ""); void warning(const std::string& message, const std::string& function = ""); void systemInfo(const std::string& message, const std::string& function = ""); void serviceInfo(const std::string& message, const std::string& function = ""); void debug(const std::string& message, const std::string& function = ""); // ����祭�� ��� ᮮ�饭�� std::vector<std::string> getAllMessages() const; // ���⪠ ᮮ�饭�� void clearMessages(); }; int task_4(); #endif