/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Harl.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: narnaud +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/06/17 11:14:29 by narnaud #+# #+# */ /* Updated: 2022/07/18 13:00:18 by narnaud ### ########.fr */ /* */ /* ************************************************************************** */ #include "Harl.hpp" Harl::Harl (void) {} Harl::~Harl (void) {} void Harl::_debug(void) { std::cout << "Debug : ..." << std::endl; } void Harl::_info(void) { std::cout << "Info: ..." << std::endl; } void Harl::_warning(void) { std::cout << "Warning: ..." << std::endl; } void Harl::_error(void) { std::cout << "Error: ..." << std::endl; } void Harl::_complain(string level) { string ids = "DIWE"; int i = 0; while (ids[i] && ids[i] != level[0]) i++; switch (i) { case 0: this->_debug(); case 1: this->_info(); case 2: this->_warning(); case 3: this->_error(); } }