Line data Source code
1 0 : // Distributed under the MIT License. 2 : // See LICENSE.txt for details. 3 : 4 : #pragma once 5 : 6 : #include <ostream> 7 : 8 : /// \cond 9 : namespace Options { 10 : class Option; 11 : template <typename T> 12 : struct create_from_yaml; 13 : } // namespace Options 14 : /// \endcond 15 : 16 : namespace ah { 17 : /*! 18 : * \brief Label for what a horizon find will be used for. 19 : */ 20 0 : enum class Destination { Observation, ControlSystem }; 21 0 : std::ostream& operator<<(std::ostream& os, Destination destination); 22 : } // namespace ah 23 : 24 : template <> 25 0 : struct Options::create_from_yaml<ah::Destination> { 26 : template <typename Metavariables> 27 0 : static ah::Destination create(const Options::Option& options) { 28 : return create<void>(options); 29 : } 30 : }; 31 : 32 : template <> 33 0 : ah::Destination Options::create_from_yaml<ah::Destination>::create<void>( 34 : const Options::Option& options);