#ifndef EFFWRITEMANAGER_HPP_ #define EFFWRITEMANAGER_HPP_ #include "eff_utils/EffExceptions.hpp" #include "eff_utils/Efficiency.hpp" namespace eff_utils { /*! \brief Save efficiencies to the files. This menager will save efficiency to the different or same file depending of EffInfo object. It also will verify there is no efficiency with the same EffInfo. \authors Viatcheslav Shary (shary@fnal.gov) */ class EffWriteManager { std::string _path ; //< directory to write the efficiencies public: // Constructors EffWriteManager(const std::string& dir_path) : _path (dir_path+"/") {} // return true if saving was successful bool Save(const Efficiency& eff) ; private: //non-recursive search for spc files in directory void AddFiles2List(const char* path, std::vector& files) ; }; } #endif // _EFFWRITEMANAGER_HPP_