1 #ifndef art_Framework_Services_Optional_TFileService_h 2 #define art_Framework_Services_Optional_TFileService_h 21 class ActivityRegistry;
22 class ModuleDescription;
37 static constexpr
const char* default_tmpDir =
"<parent-path-of-filename>";
59 void registerFileSwitchCallback(T* provider,
void (T::*)());
77 std::string lastClosedFile_{};
79 std::chrono::steady_clock::time_point beginTime_{};
92 void maybeSwitchFiles_();
93 bool requestsToCloseFile_();
94 std::string fileNameAtOpen_();
95 std::string fileNameAtClose_(std::string
const&);
100 template <
typename T>
104 auto cb = [provider,
f] {
return (provider->*f)(); };
105 registerFileSwitchCallback(cb);
std::function< void()> Callback_t
void registerFileSwitchCallback(Callback_t c)
#define DECLARE_ART_SERVICE(svc, scope)
bool const closeFileFast_
FileStatsCollector fstats_
std::string uniqueFilename_