Chrysalis - Pattern
Toggle main menu visibility
Loading...
Searching...
No Matches
BaseInstruction.h
Go to the documentation of this file.
1
#ifndef CHRYSALIS_BASEINSTRUCTION_H
2
#define CHRYSALIS_BASEINSTRUCTION_H
3
4
#include "
serialization.h
"
5
9
namespace
Chrysalis
{
10
class
BaseInstruction
{
11
SERIALIZED
12
protected
:
13
explicit
BaseInstruction
() =
default
;
14
public
:
15
virtual
~BaseInstruction
() =
default
;
16
17
void
run
();
18
virtual
void
ignore
();
19
protected
:
20
virtual
void
execute
() = 0;
21
22
bool
executed_
=
false
;
23
};
24
}
26
27
#endif
//CHRYSALIS_BASEINSTRUCTION_H
Chrysalis::BaseInstruction::BaseInstruction
BaseInstruction()=default
Chrysalis::BaseInstruction::ignore
virtual void ignore()
Definition
BaseInstruction.cpp:10
Chrysalis::BaseInstruction::execute
virtual void execute()=0
Chrysalis::BaseInstruction::~BaseInstruction
virtual ~BaseInstruction()=default
Chrysalis::BaseInstruction::executed_
bool executed_
Definition
BaseInstruction.h:22
Chrysalis::BaseInstruction::run
void run()
Definition
BaseInstruction.cpp:5
Chrysalis
Definition
Argument.h:9
serialization.h
SERIALIZED
#define SERIALIZED
Definition
serialization.h:57
pattern
include
instructions
BaseInstruction.h
Generated by
1.17.0