74 lines
1.9 KiB
C++
74 lines
1.9 KiB
C++
#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";
|
|
|
|
|