37 lines
1.4 KiB
C++
37 lines
1.4 KiB
C++
/* ************************************************************************** */
|
||
/* */
|
||
/* ::: :::::::: */
|
||
/* AMateria.cpp :+: :+: :+: */
|
||
/* +:+ +:+ +:+ */
|
||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||
/* +#+#+#+#+#+ +#+ */
|
||
/* Created: 2024/12/09 11:24:41 by adjoly #+# #+# */
|
||
/* Updated: 2024/12/11 11:03:42 by adjoly ### ########.fr */
|
||
/* */
|
||
/* ************************************************************************** */
|
||
|
||
#include "AMateria.hpp"
|
||
#include "Log.hpp"
|
||
|
||
AMateria::AMateria(void) : _type("") {
|
||
log("➕", "AMateria", "", "default constructor called");
|
||
}
|
||
|
||
AMateria::AMateria(std::string const &type) {
|
||
log("➕", "AMateria", "", "copy constructor called");
|
||
}
|
||
|
||
AMateria::~AMateria(void) {
|
||
log("➖", "AMateria", "", "destructor called");
|
||
}
|
||
|
||
AMateria &AMateria::operator=(const AMateria &cpy) {
|
||
log("➕", "AMateria", "", "copy assignement constructor called");
|
||
if (this != &cpy) {
|
||
_type = cpy._type;
|
||
}
|
||
return (*this);
|
||
}
|
||
|
||
std::string const &AMateria::getType(void) const { return (_type); }
|