annotate 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
rev   line source
bgneal@1 1 #ifndef CPP_ENIGMA_ROTOR_FACTORY_H
bgneal@1 2 #define CPP_ENIGMA_ROTOR_FACTORY_H
bgneal@1 3 // Copyright (C) 2012 by Brian Neal.
bgneal@1 4 // This file is part of Cpp-Enigma, the Enigma Machine simulation.
bgneal@1 5 // Cpp-Enigma is released under the MIT License (see License.txt).
bgneal@1 6 //
bgneal@1 7 // rotor_factory.h - simulated rotor & reflector factory functions
bgneal@1 8
bgneal@1 9 #include <memory>
bgneal@1 10
bgneal@1 11 namespace enigma
bgneal@1 12 {
bgneal@1 13 class rotor;
bgneal@1 14
bgneal@1 15 // Create a historical rotor with the given ring setting and return it:
bgneal@1 16 std::unique_ptr<rotor> create_rotor(const char* name, int ring_setting = 0);
bgneal@1 17
bgneal@1 18 // Create a historical reflector and return it:
bgneal@1 19 std::unique_ptr<rotor> create_reflector(const char* name);
bgneal@1 20 }
bgneal@1 21
bgneal@1 22 #endif