#ifndef DCallibration_h #define DCallibration_h #include "Providers/DDataProvider.h" namespace ccdb { class DCallibration { public: DCallibration(); virtual ~DCallibration(); /** * @brief Connects to database using connection string * * Connects to database using connection string * connection string might be in form: * mysql://:@: * file:// * * @param connectionString "mysql://:@: " * @return true if connected */ virtual bool Connect(std::string connectionString) = 0; /** * @brief closes connection to data */ virtual void Disconnect()= 0; /** * @brief indicates ether the connection is open or not * * @return true if connection is open */ virtual bool IsConnected()=0; private: DCallibration(const DCallibration& rhs); DCallibration& operator=(const DCallibration& rhs); protected: DDataProvider *mProvider; string mConnectionString; int mRunNumber; string mVariation; }; } #endif // DCallibration_h