aboutsummaryrefslogtreecommitdiff
path: root/cpp05/ex02/PresidentialPardonFrom.cpp
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-11-17 19:02:35 +0100
committerCharles Cabergs <me@cacharle.xyz>2020-11-17 19:02:35 +0100
commit452e6bfa7bb4bca75dc4659bf9d707101b411977 (patch)
treef4ee27a96437d6d17a89bbbbc135ae45f9f3faae /cpp05/ex02/PresidentialPardonFrom.cpp
parenta92013c92bfcd50b0e2561280c9eaa604843ade0 (diff)
downloadpiscine_cpp-452e6bfa7bb4bca75dc4659bf9d707101b411977.tar.gz
piscine_cpp-452e6bfa7bb4bca75dc4659bf9d707101b411977.tar.bz2
piscine_cpp-452e6bfa7bb4bca75dc4659bf9d707101b411977.zip
Added cpp05/ex02 main, Added cpp05/ex03
Diffstat (limited to 'cpp05/ex02/PresidentialPardonFrom.cpp')
-rw-r--r--cpp05/ex02/PresidentialPardonFrom.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/cpp05/ex02/PresidentialPardonFrom.cpp b/cpp05/ex02/PresidentialPardonFrom.cpp
deleted file mode 100644
index 46e2d3c..0000000
--- a/cpp05/ex02/PresidentialPardonFrom.cpp
+++ /dev/null
@@ -1,35 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* 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) {}