#ifndef DCallibrationGenerator_h #define DCallibrationGenerator_h #include "UserAPI/DCallibration.h" #include #include namespace ccdb { class DCalibration; class DCallibrationGenerator { public: DCallibrationGenerator(); virtual ~DCallibrationGenerator(); virtual DCalibration* MakeCalibration(const std::string & connectionString, int run, const std::string& context); ///< Instantiate an JCalibration object (subclass) virtual bool CheckOpenable(const std::string &); ///< Instantiate an JCalibration object (subclass) private: virtual DCalibration* MakeMySQLCalibration(const std::string & connectionString, int run, const std::string& context); ///< Instantiate an JCalibration object (subclass) DCallibrationGenerator(const DCallibrationGenerator& rhs); DCallibrationGenerator& operator=(const DCallibrationGenerator& rhs); std::vector mCalibrations; ///Created Calibrations std::map mCalibrationsByUrl; ///map of connection string => DCallibration std::map mProvidersByUrl; ///map of connection string => DCallibration }; } #endif // DCallibrationGenerator_h