LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "PostCloseFileRenamer.h"
Public Member Functions | |
PostCloseFileRenamer (FileStatsCollector const &stats) | |
std::string | applySubstitutions (std::string const &filePattern) |
std::string | maybeRenameFile (std::string const &inPath, std::string const &toPattern) |
Private Member Functions | |
std::string | applySubstitutionsNoIndex_ (std::string const &filePattern) const |
std::string | subInputFileName_ (boost::smatch const &match) const |
std::string | subTimestamp_ (boost::smatch const &match) const |
std::string | subFilledNumericNoIndex_ (boost::smatch const &match) const |
Private Attributes | |
FileStatsCollector const & | stats_ |
std::map< detail::FileNameComponents, std::size_t > | indexForProcessedPattern_ {} |
Definition at line 14 of file PostCloseFileRenamer.h.
art::PostCloseFileRenamer::PostCloseFileRenamer | ( | FileStatsCollector const & | stats | ) |
Definition at line 15 of file PostCloseFileRenamer.cc.
std::string art::PostCloseFileRenamer::applySubstitutions | ( | std::string const & | filePattern | ) |
Definition at line 248 of file PostCloseFileRenamer.cc.
References applySubstitutionsNoIndex_(), art::detail::componentsFromPattern(), art::FileStatsCollector::fileCloseRecorded(), indexForProcessedPattern_, and stats_.
Referenced by maybeRenameFile().
|
private |
Definition at line 28 of file PostCloseFileRenamer.cc.
References art::errors::Configuration, art::FileStatsCollector::moduleLabel(), art::FileStatsCollector::processName(), stats_, subFilledNumericNoIndex_(), subInputFileName_(), and subTimestamp_().
Referenced by applySubstitutions().
std::string art::PostCloseFileRenamer::maybeRenameFile | ( | std::string const & | inPath, |
std::string const & | toPattern | ||
) |
Definition at line 264 of file PostCloseFileRenamer.cc.
References applySubstitutions().
Referenced by art::RootOutput::fileNameAtClose(), and art::TFileService::fileNameAtClose_().
|
private |
Definition at line 193 of file PostCloseFileRenamer.cc.
References art::FileStatsCollector::highestSubRunID(), art::SubRunID::isValid(), art::RunID::isValid(), art::FileStatsCollector::lowestSubRunID(), art::SubRunID::run(), art::SubRunID::runID(), stats_, and art::SubRunID::subRun().
Referenced by applySubstitutionsNoIndex_().
|
private |
Definition at line 94 of file PostCloseFileRenamer.cc.
References art::FileStatsCollector::lastOpenedInputFile(), art::errors::LogicError, and stats_.
Referenced by applySubstitutionsNoIndex_().
|
private |
Definition at line 172 of file PostCloseFileRenamer.cc.
References art::errors::LogicError, art::FileStatsCollector::outputFileCloseTime(), art::FileStatsCollector::outputFileOpenTime(), and stats_.
Referenced by applySubstitutionsNoIndex_().
|
private |
Definition at line 34 of file PostCloseFileRenamer.h.
Referenced by applySubstitutions().
|
private |
Definition at line 33 of file PostCloseFileRenamer.h.
Referenced by applySubstitutions(), applySubstitutionsNoIndex_(), subFilledNumericNoIndex_(), subInputFileName_(), and subTimestamp_().