Files
CPP_Module_06/ex00/ScalarConverter.cpp

48 lines
1.7 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ScalarConverter.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/03 19:59:17 by adjoly #+# #+# */
/* Updated: 2025/04/04 11:20:32 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "ScalarConverter.hpp"
void _log(std::string emoji, std::string what, std::string who,
std::string str) {
#ifdef VERBOSE
if (who.empty())
std::cout << "" << emoji << "" << what << ": " << str << std::endl;
else
std::cout << "" << emoji << "" << what << "(" << who << "): " << str
<< std::endl;
#else
(void)emoji, (void)what, (void)who, (void)str;
#endif
}
ScalarConverter::ScalarConverter(void) {
_log("", "ScalarConverter", "", "default constructor called");
}
ScalarConverter::ScalarConverter(const ScalarConverter &cpy) {
_log("", "ScalarConverter", "", "copy constructor called");
if (this != &cpy) {
*this = cpy;
}
}
ScalarConverter::~ScalarConverter(void) {
_log("", "ScalarConverter", "", "destructor called");
}
void ScalarConverter::convert(std::string &s) {
}