////////////////////////////////////////////////////////////////////////
/// \class RAT::DBCommandLoader
///
/// \brief Loads command line commands into the db
///
/// \author Phil G Jones
///
/// REVISION HISTORY:\n
/// 2014-04-18 : P G Jones - New file. \n
///
/// \details Helper methods to load commands into the database.
///
////////////////////////////////////////////////////////////////////////
#ifndef __RAT_DBCommandLoader_hh__
#define __RAT_DBCommandLoader_hh__
#include
namespace RAT
{
namespace DS
{
class Meta;
} // ::DS
// A class with static members keeps rootcint happy
class DBCommandLoader
{
public:
/// Load all the commands in the meta information
///
/// @param[in] meta information to load from
static void LoadCommands( const DS::Meta& meta );
/// Load a override command
///
/// @param[in] tableField descriptor
/// @param[in] value to override
static void LoadCommand( const std::string& tableField, const std::string& value );
/// Load a file command
///
/// @param[in] contents of the file
static void LoadFile( const std::string& contents );
};
} //::RAT
#endif