CommandLineOptions.h
Go to the documentation of this file.
1 #ifndef _fwk_CommandLineOptions_h_
2 #define _fwk_CommandLineOptions_h_
3 
4 #include <boost/program_options.hpp>
5 #include <utl/Singleton.h>
6 
7 
8 namespace fwk {
9 
20  class CommandLineOptions : public utl::Singleton<CommandLineOptions> {
21  public:
22  void SetVariablesMap(const boost::program_options::variables_map& vm)
23  { fVariablesMap = vm; }
24 
25  const boost::program_options::variables_map& GetVariablesMap() const
26  { return fVariablesMap; }
27 
28  private:
29  boost::program_options::variables_map fVariablesMap;
30  };
31 
32 }
33 
34 
35 #endif
const boost::program_options::variables_map & GetVariablesMap() const
void SetVariablesMap(const boost::program_options::variables_map &vm)
boost::program_options::variables_map fVariablesMap
Curiously Recurring Template Pattern (CRTP) for Meyers singleton.
Definition: Singleton.h:36

, generated on Tue Sep 26 2023.