2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
15 \brief ProgramOptions inline template implementation */
17 #include "ProgramOptions.ih"
21 #define prefix_ inline
22 //-/////////////////////////////////////////////////////////////////////////////////////////////////
24 //-/////////////////////////////////////////////////////////////////////////////////////////////////
25 // senf::console::detail::ProgramOptionsSource
27 template <class Container>
28 prefix_ senf::console::detail::ProgramOptionsSource &
29 senf::console::detail::ProgramOptionsSource::nonOptions(Container & container)
31 nonOptions_.reset(new NonOptionContainerImpl<Container>(container));
35 //-/////////////////////////////////////////////////////////////////////////////////////////////////
36 // senf::console::detail::ProgramOptionsSource::NonOptionContainerImpl
38 template <class Container>
40 senf::console::detail::ProgramOptionsSource::NonOptionContainerImpl<Container>::
41 NonOptionContainerImpl(Container & c)
45 template <class Container>
47 senf::console::detail::ProgramOptionsSource::NonOptionContainerImpl<Container>::clear()
52 template <class Container>
54 senf::console::detail::ProgramOptionsSource::NonOptionContainerImpl<Container>::
55 push_back(std::string const & value)
60 //-/////////////////////////////////////////////////////////////////////////////////////////////////
61 // senf::console::ProgramOptions
63 template <class Container>
64 prefix_ senf::console::ProgramOptions &
65 senf::console::ProgramOptions::nonOptions(Container & container)
67 config_.nonOptions(container);
71 //-/////////////////////////////////////////////////////////////////////////////////////////////////
79 // c-file-style: "senf"
80 // indent-tabs-mode: nil
81 // ispell-local-dictionary: "american"
82 // compile-command: "scons -u test"