EnigmaMachineCore 0.1.0
A modular Enigma Machine simulation in C++20
Loading...
Searching...
No Matches
Variables
config.hpp File Reference

Global configuration constants for the Enigma machine. More...

#include <string_view>
+ Include dependency graph for config.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

constexpr int TRANSFORMER_SIZE = 26
 Size of the alphabet/transformer (Standard Enigma is 26).
 
constexpr int PLUGBOARD_MAX_PAIRS = 13
 Maximum number of allowed pairs on the plugboard.
 
constexpr std::string_view assetsDir = "assets/"
 Default assets base directory.
 
constexpr std::string_view defaultRotor1File = "Rotor1.toml"
 Default configuration files.
 
constexpr std::string_view defaultRotor2File = "Rotor2.toml"
 
constexpr std::string_view defaultRotor3File = "Rotor3.toml"
 
constexpr std::string_view defaultReflectorFile = "Reflector.toml"
 

Detailed Description

Global configuration constants for the Enigma machine.

Definition in file config.hpp.

Variable Documentation

◆ assetsDir

constexpr std::string_view assetsDir = "assets/"
inlineconstexpr

Default assets base directory.

Definition at line 16 of file config.hpp.

Referenced by resolveDefaultAssetPath(), and resolveDefaultAssetPath().

◆ defaultReflectorFile

constexpr std::string_view defaultReflectorFile = "Reflector.toml"
inlineconstexpr

Definition at line 22 of file config.hpp.

Referenced by EnigmaMachine::EnigmaMachine().

◆ defaultRotor1File

constexpr std::string_view defaultRotor1File = "Rotor1.toml"
inlineconstexpr

Default configuration files.

Definition at line 19 of file config.hpp.

Referenced by EnigmaMachine::EnigmaMachine().

◆ defaultRotor2File

constexpr std::string_view defaultRotor2File = "Rotor2.toml"
inlineconstexpr

Definition at line 20 of file config.hpp.

Referenced by EnigmaMachine::EnigmaMachine().

◆ defaultRotor3File

constexpr std::string_view defaultRotor3File = "Rotor3.toml"
inlineconstexpr

Definition at line 21 of file config.hpp.

Referenced by EnigmaMachine::EnigmaMachine().

◆ PLUGBOARD_MAX_PAIRS

constexpr int PLUGBOARD_MAX_PAIRS = 13
inlineconstexpr

Maximum number of allowed pairs on the plugboard.

Definition at line 13 of file config.hpp.

Referenced by EnigmaConfigLoader::load().

◆ TRANSFORMER_SIZE

constexpr int TRANSFORMER_SIZE = 26
inlineconstexpr

Size of the alphabet/transformer (Standard Enigma is 26).

Definition at line 10 of file config.hpp.

Referenced by PlugBoard::PlugBoard(), ReflectorConfig::ReflectorConfig(), Rotor::initReverseLookupTable(), Rotor::rotate(), PlugBoard::swap(), Rotor::transformForward(), and Rotor::transformReverse().