blob: 385584135696e5a292a083a5a6b32578cd044e6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* PresidentialPardonForm.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <me@cacharle.xyz> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/11/17 13:01:25 by cacharle #+# #+# */
/* Updated: 2020/11/17 17:02:14 by charles ### ########.fr */
/* */
/* ************************************************************************** */
#include "PresidentialPardonForm.hpp"
PresidentialPardonForm::PresidentialPardonForm(std::string const& target)
: Form("presidential pardon", 25, 5), m_target(target) {}
PresidentialPardonForm::PresidentialPardonForm(const PresidentialPardonForm& other)
: Form(other) { *this = other; }
PresidentialPardonForm& PresidentialPardonForm::operator=(const PresidentialPardonForm& other)
{
Form::operator=(other);
m_target = other.m_target;
return *this;
}
PresidentialPardonForm::~PresidentialPardonForm() {}
void PresidentialPardonForm::executeUnsafe() const
{
std::cout << m_target << " has been pardoned by Zafod Beeblebrox" << std::endl;
}
PresidentialPardonForm::PresidentialPardonForm() : Form("", 0, 0) {}
|