42 #ifndef OPTIONS_FORM_STEAM_PACK_COMMANDLINE_OPTIONS_FROM_STREAM_PROCESSOR_HPP 43 #define OPTIONS_FORM_STEAM_PACK_COMMANDLINE_OPTIONS_FROM_STREAM_PROCESSOR_HPP 45 #include "OptionsFromStreamPack_OptionsFromStream.hpp" 46 #include "Teuchos_CommandLineProcessor.hpp" 47 #include "Teuchos_RCP.hpp" 48 #include "Teuchos_StandardMemberCompositionMacros.hpp" 72 const std::string &options_file_name_opt_name =
"ofs-options-file" 73 ,
const std::string &options_file_name_opt_doc =
"The name of the file containing input options for OptionsFromStream object." 74 ,
const std::string &options_file_name =
"" 75 ,
const std::string &extra_options_str_opt_name =
"ofs-extra-options" 76 ,
const std::string &extra_options_str_opt_doc =
"Extra options in format \"OptGrp1{name1=val1,...,namen=valn}:OptGr2{name1=val1,...,namen=valn}:...\"" 77 ,
const std::string &extra_options_str =
"" 94 Teuchos::RCP<OptionsFromStream>
const& options
102 Teuchos::RCP<OptionsFromStream>
get_options()
const;
167 Teuchos::CommandLineProcessor *clp
195 Teuchos::RCP<OptionsFromStream> options_;
201 #endif // OPTIONS_FORM_STEAM_PACK_COMMANDLINE_OPTIONS_FROM_STREAM_PROCESSOR_HPP Reads from a file and/or parses from the commandline to initalize an OptionsFromStream object...
void setup_commandline_processor(Teuchos::CommandLineProcessor *clp)
Setup a comandline processor before it processes commandline options or reads form a file...
Teuchos::RCP< OptionsFromStream > get_options() const
Just return the OptionsFromStream object in its current state.
void set_options(Teuchos::RCP< OptionsFromStream > const &options)
Set the OptionsFromStream object that will be used to fill options in to.
STANDARD_MEMBER_COMPOSITION_MEMBERS(std::string, options_file_name_opt_name)
Set the name of the commandline option name that specifies the options file name. ...
void process_options()
Read the options file and/or process the commandline options.
Teuchos::RCP< OptionsFromStream > process_and_get_options()
Calls process_options() and returns get_options()
CommandLineOptionsFromStreamProcessor(const std::string &options_file_name_opt_name="ofs-options-file", const std::string &options_file_name_opt_doc="The name of the file containing input options for OptionsFromStream object.", const std::string &options_file_name="", const std::string &extra_options_str_opt_name="ofs-extra-options", const std::string &extra_options_str_opt_doc="Extra options in format \"OptGrp1{name1=val1,...,namen=valn}:OptGr2{name1=val1,...,namen=valn}:...\"", const std::string &extra_options_str="")
Construct with default values for the options file name and extra options.