commit before leaving school, what did i do ? i don't know

This commit is contained in:
Hugo LAMY
2022-02-28 20:37:24 +01:00
parent 4946eb3b8c
commit 130b228a2f
10 changed files with 552 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
#include "ShrubberyCreationForm.hpp"
#define COPLIEN_COLOR B_CYAN
/*********************************************
* CONSTRUCTORS
*********************************************/
ShrubberyCreationForm::ShrubberyCreationForm( std::string foo = ShrubberyCreationForm::_bar )
: _foo(foo) {
std::cout << COPLIEN_COLOR "ShrubberyCreationForm constructor" RESET "\n";
return;
}
ShrubberyCreationForm::ShrubberyCreationForm( ShrubberyCreationForm const & src ) {
std::cout << COPLIEN_COLOR "ShrubberyCreationForm copy constructor" RESET "\n";
*this = src;
return;
}
/*********************************************
* DESTRUCTORS
*********************************************/
ShrubberyCreationForm::~ShrubberyCreationForm() {
std::cout << COPLIEN_COLOR "ShrubberyCreationForm destructor" RESET "\n";
return;
}
/*********************************************
* OPERATORS
*********************************************/
ShrubberyCreationForm & ShrubberyCreationForm::operator=( ShrubberyCreationForm const & rhs ) {
// Base::operator=(rhs);
if ( this != &rhs )
{
// _foo = rhs.getFoo();
}
return *this;
}
//std::ostream & operator<<(std::ostream & o, ShrubberyCreationForm const & rhs)
//{
// o << rhs.getFoo();
// return (o);
//}
/*********************************************
* ACCESSORS
*********************************************/
//std::string ShrubberyCreationForm::getFoo() const {return _foo;}
/*********************************************
* PUBLIC MEMBER FUNCTIONS
*********************************************/
//void ShrubberyCreationForm::function(const std::string & foo) {}
/*********************************************
* NESTED CLASS
*********************************************/
//void ShrubberyCreationForm::Class::function() {}
/*********************************************
* STATICS
*********************************************/
//std::string const ShrubberyCreationForm::_bar = "bar";