|
vg
tools for working with variation graphs
|
#include <options.hpp>
Public Member Functions | |
| Preset ()=default | |
| Preset (const Preset &other) | |
| Preset (Preset &&other)=default | |
| Preset & | operator= (const Preset &other) |
| Preset & | operator= (Preset &&other)=default |
| template<typename T > | |
| Preset & | add_entry (const std::string &option, const T &value) |
| As part of this preset, set the given option to the given value. More... | |
| void | apply (BaseOptionGroup &parser) const |
| Apply stored presets to the given parser. More... | |
Public Attributes | |
| std::vector< std::unique_ptr< BaseValuation > > | entries |
Represents a named preset of command-line option default overrides. Options are organized by long option name.
Make one of these, and use add_entry() to add values to it, and then use apply(root_option_group) to apply it.
|
default |
|
inline |
|
default |
| Preset & vg::subcommand::Preset::add_entry | ( | const std::string & | option, |
| const T & | value | ||
| ) |
As part of this preset, set the given option to the given value.
|
inline |
Apply stored presets to the given parser.
| std::vector<std::unique_ptr<BaseValuation> > vg::subcommand::Preset::entries |
1.8.17