EnigmaMachineCore 0.1.0
A modular Enigma Machine simulation in C++20
Loading...
Searching...
No Matches
IEnigmaObserver.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "EnigmaCore_EXPORT.hpp"
4#include "EnigmaTypes.hpp"
5
10struct ENIGMACORE_EXPORT IEnigmaObserver {
12
18 virtual void onRotorStepped(int rotorIndex, AlphabetIndex position) = 0;
19
25 virtual void onCharEncrypted(char input, char output) = 0;
26};
Interface for observing Enigma Machine events. Implement this interface to receive notifications abou...
virtual void onRotorStepped(int rotorIndex, AlphabetIndex position)=0
Called when a rotor steps.
virtual ~IEnigmaObserver()
virtual void onCharEncrypted(char input, char output)=0
Called when a character is encrypted/decrypted.