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:47:55 by kamitsui #+# #+# */
9
/* Updated: 2025/06/30 12:48:01 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
24
class
RobotomyRequestForm
:
public
AForm
{
25
private
:
26
RobotomyRequestForm
();
27
28
public
:
29
// Orthodox Canonical Form
30
RobotomyRequestForm
(
const
std::string
&target);
31
RobotomyRequestForm
(
const
RobotomyRequestForm
&other);
32
RobotomyRequestForm
&
operator=
(
const
RobotomyRequestForm
&other);
33
~RobotomyRequestForm
();
34
35
// Action
36
virtual
void
performAction
()
const
;
37
};
38
39
#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::RobotomyRequestForm
RobotomyRequestForm(const std::string &target)
RobotomyRequestForm::RobotomyRequestForm
RobotomyRequestForm(const RobotomyRequestForm &other)
RobotomyRequestForm::performAction
virtual void performAction() const
RobotomyRequestForm::operator=
RobotomyRequestForm & operator=(const RobotomyRequestForm &other)
RobotomyRequestForm::~RobotomyRequestForm
~RobotomyRequestForm()
cstdlib
AForm.hpp
Defines the abstract base class AForm for all specific forms.
ex03
RobotomyRequestForm.hpp
構築:
1.9.8