CMS 3D CMS Logo

CommonOptions.h

Go to the documentation of this file.
00001 #ifndef CondCore_Utilities_CommonOptions_h
00002 #define CondCore_Utilities_CommonOptions_h
00003 
00004 #include <boost/program_options.hpp>
00005 
00006 namespace cond{
00007   class CommonOptions{
00008   public:
00009     explicit CommonOptions( const std::string& commandname);
00010     CommonOptions( const std::string& commandname,
00011                    const std::string& positionparameter);
00012     ~CommonOptions();
00013     void addAuthentication(const bool withEnvironmentAuth=true);
00014     void addConnect();
00015     void addLogDB();
00016     void addDictionary();
00017     void addFileConfig();
00018     void addBlobStreamer();
00019     
00020     boost::program_options::options_description& description();
00021     boost::program_options::options_description& visibles();
00022 
00023   private:
00024     std::string m_name;
00025     boost::program_options::options_description* m_description;
00026     boost::program_options::options_description* m_visible;
00027   };
00028 }
00029 #endif

Generated on Tue Jun 9 17:26:14 2009 for CMSSW by  doxygen 1.5.4