Skip to content

Commit

Permalink
Granular construction of McOptionsValues
Browse files Browse the repository at this point in the history
Refactor in support of libqueso#569 to enable various layered
phases of constructing McOptionsValues.  This mirrors work done in
other *OptionsValues.
  • Loading branch information
briadam committed Oct 13, 2017
1 parent e6bbc02 commit cfbc469
Show file tree
Hide file tree
Showing 2 changed files with 215 additions and 204 deletions.
11 changes: 10 additions & 1 deletion src/stats/inc/MonteCarloSGOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@ class McOptionsValues
/*! It assigns the same options values from \c src to \c this.*/
McOptionsValues (const McOptionsValues& src);

//! Set default values for parameter options
void set_defaults();

//! Set parameter option names to begin with prefix
void set_prefix(const std::string& prefix);

//! Given prefix, read the input file for parameters named "prefix"+*
void parse(const BaseEnvironment& env, const std::string& prefix);

//! Destructor
virtual ~McOptionsValues ();
//@}
Expand Down Expand Up @@ -141,7 +150,7 @@ class McOptionsValues

private:
#ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
BoostInputOptionsParser * m_parser;
ScopedPtr<BoostInputOptionsParser>::Type m_parser;
#endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS

std::string m_option_help;
Expand Down
Loading

0 comments on commit cfbc469

Please sign in to comment.