Chrysalis - Pattern
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
9namespace Chrysalis {
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
virtual void ignore()
Definition BaseInstruction.cpp:10
virtual void execute()=0
virtual ~BaseInstruction()=default
bool executed_
Definition BaseInstruction.h:22
void run()
Definition BaseInstruction.cpp:5
Definition Argument.h:9
#define SERIALIZED
Definition serialization.h:57