blob: 46e2d3c3812cefb4327ab40386b255d00928cd82 (
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
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* PresidentialPardonFrom.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <me@cacharle.xyz> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/11/17 13:01:25 by cacharle #+# #+# */
/* Updated: 2020/11/17 13:04:10 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include "PresidentialPardonFrom.hpp"
PresidentialPardonFrom::PresidentialPardonFrom(std::string const& target)
: Form("presidential pardon", 25, 5), m_target(target) {}
PresidentialPardonFrom::PresidentialPardonFrom(const PresidentialPardonFrom& other)
: Form(other) { *this = other; }
PresidentialPardonFrom& PresidentialPardonFrom::operator=(const PresidentialPardonFrom& other)
{
Form::operator=(other);
m_target = other.m_target;
return *this;
}
PresidentialPardonFrom::~PresidentialPardonFrom() {}
void PresidentialPardonFrom::executeUnsafe() const
{
std::cout << m_target << " has been pardoned by Zafod Beeblebrox" << std::endl;
}
PresidentialPardonFrom::PresidentialPardonFrom() : Form("", 0, 0) {}
|