CPP05
1.0
読み取り中…
検索中…
一致する文字列を見つけられません
RobotomyRequestForm.hpp
[詳解]
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* RobotomyRequestForm.hpp :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: kamitsui <kamitsui@student.42tokyo.jp> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2025/06/30 12:20:30 by kamitsui #+# #+# */
9
/* Updated: 2025/06/30 12:20:47 by kamitsui ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
18
#ifndef ROBOTOMYREQUESTFORM_HPP
19
#define ROBOTOMYREQUESTFORM_HPP
20
21
#include "
AForm.hpp
"
22
#include <
cstdlib
>
// For rand()
23
28
class
RobotomyRequestForm
:
public
AForm
{
29
private
:
30
RobotomyRequestForm
();
31
32
public
:
33
// Orthodox Canonical Form
34
RobotomyRequestForm
(
const
std::string
&target);
35
RobotomyRequestForm
(
const
RobotomyRequestForm
&other);
36
RobotomyRequestForm
&
operator=
(
const
RobotomyRequestForm
&other);
37
~RobotomyRequestForm
();
38
39
// Action
40
virtual
void
performAction
()
const
;
41
};
42
43
#endif
std::string
AForm
An abstract base class for forms.
Definition
AForm.hpp:34
RobotomyRequestForm
A concrete form that simulates a robotomy attempt.
Definition
RobotomyRequestForm.hpp:28
RobotomyRequestForm::operator=
RobotomyRequestForm & operator=(const RobotomyRequestForm &other)
Definition
RobotomyRequestForm.cpp:24
RobotomyRequestForm::~RobotomyRequestForm
~RobotomyRequestForm()
Definition
RobotomyRequestForm.cpp:29
RobotomyRequestForm::performAction
virtual void performAction() const
Makes drilling noises and informs of a 50% successful robotomy.
Definition
RobotomyRequestForm.cpp:34
cstdlib
AForm.hpp
Defines the abstract base class AForm for all specific forms.
ex02
RobotomyRequestForm.hpp
構築:
1.9.8