TDbiCfgDialog.hxx

Go to the documentation of this file.
00001 ////////////////////////////////////////////////////////////////////////
00002 // $Id: TDbiCfgDialog.hxx,v 1.1 2011/01/18 05:49:19 finch Exp $
00003 ///
00004 /// \class TDbiCfgDialog
00005 ///
00006 /// \brief A simple class to query a user to supply values for a registry. Internally 
00007 /// stores three TDbiRegistry objects,  current, default and reset
00008 ///
00009 /// messier@huhepl.harvard.edu
00010 ////////////////////////////////////////////////////////////////////////
00011 #ifndef CFGDIALOG_H
00012 #define CFGDIALOG_H
00013 #ifndef REGISTRY_H
00014 #include "TDbiRegistry.hxx"
00015 #endif
00016 
00017 
00018 class TDbiCfgDialog
00019 {
00020 public:
00021   TDbiCfgDialog();
00022   TDbiCfgDialog(const TDbiRegistry& current, const TDbiRegistry& deflt);
00023   virtual ~TDbiCfgDialog();
00024 
00025   virtual TDbiRegistry& Query();
00026   
00027   void SetCurrent(const TDbiRegistry& r);
00028   void SetDefault(const TDbiRegistry& r);
00029 
00030 protected:
00031   TDbiRegistry fCurrent; // Current values for configuration
00032   TDbiRegistry fDefault; // Default settings for configuration
00033   TDbiRegistry fResult;  // User inputs
00034 };
00035 
00036 
00037 #endif
00038 ////////////////////////////////////////////////////////////////////////
00039 

Generated on 11 Aug 2013 for SKDatabase by  doxygen 1.6.1