comparison enigma/rotor_factory.h @ 1:1459e74fda3f

Finished creating rotor class and factories.
author Brian Neal <bgneal@gmail.com>
date Fri, 22 Jun 2012 20:15:11 -0500
parents
children
comparison
equal deleted inserted replaced
0:74ebb2150658 1:1459e74fda3f
1 #ifndef CPP_ENIGMA_ROTOR_FACTORY_H
2 #define CPP_ENIGMA_ROTOR_FACTORY_H
3 // Copyright (C) 2012 by Brian Neal.
4 // This file is part of Cpp-Enigma, the Enigma Machine simulation.
5 // Cpp-Enigma is released under the MIT License (see License.txt).
6 //
7 // rotor_factory.h - simulated rotor & reflector factory functions
8
9 #include <memory>
10
11 namespace enigma
12 {
13 class rotor;
14
15 // Create a historical rotor with the given ring setting and return it:
16 std::unique_ptr<rotor> create_rotor(const char* name, int ring_setting = 0);
17
18 // Create a historical reflector and return it:
19 std::unique_ptr<rotor> create_reflector(const char* name);
20 }
21
22 #endif