diff options
Diffstat (limited to 'cpp05/ex02/ShrubberyCreationForm.cpp')
| -rw-r--r-- | cpp05/ex02/ShrubberyCreationForm.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/cpp05/ex02/ShrubberyCreationForm.cpp b/cpp05/ex02/ShrubberyCreationForm.cpp new file mode 100644 index 0000000..e138824 --- /dev/null +++ b/cpp05/ex02/ShrubberyCreationForm.cpp @@ -0,0 +1,31 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ShrubberyCreationForm.cpp :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <me@cacharle.xyz> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/10/19 13:45:45 by cacharle #+# #+# */ +/* Updated: 2020/10/19 13:55:53 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "ShrubberyCreationForm.hpp" + +ShrubberyCreationForm::ShrubberyCreationForm(const ShrubberyCreationForm& other) + : m_target(other.m_target) +{} + +ShrubberyCreationForm& ShrubberyCreationForm::operator=(const ShrubberyCreationForm& other) +{ + Form::operator=(*this, other); + m_target = other.m_target; + return *this; +} + +ShrubberyCreationForm::~ShrubberyCreationForm() {} + +ShrubberyCreationForm::ShrubberyCreationForm(std::string const& target) + m_target(target) {} + +ShrubberyCreationForm::ShrubberyCreationForm() : m_target("") {} |
