LArSoft
v09_90_00
Liquid Argon Software toolkit - https://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 37 of file PostCloseFileRenamer.cc.
std::string art::PostCloseFileRenamer::applySubstitutions | ( | std::string const & | filePattern | ) |
Definition at line 269 of file PostCloseFileRenamer.cc.
References applySubstitutionsNoIndex_(), art::detail::componentsFromPattern(), art::FileStatsCollector::fileCloseRecorded(), indexForProcessedPattern_, and stats_.
Referenced by maybeRenameFile().
|
private |
Definition at line 43 of file PostCloseFileRenamer.cc.
References util::cbegin(), util::cend(), 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 285 of file PostCloseFileRenamer.cc.
References applySubstitutions().
|
private |
Definition at line 214 of file PostCloseFileRenamer.cc.
References art::FileStatsCollector::highestRunID(), art::FileStatsCollector::highestSubRunID(), art::RunID::isValid(), art::SubRunID::isValid(), art::FileStatsCollector::lowestRunID(), art::FileStatsCollector::lowestSubRunID(), art::RunID::run(), stats_, and art::SubRunID::subRun().
Referenced by applySubstitutionsNoIndex_().
|
private |
Definition at line 103 of file PostCloseFileRenamer.cc.
References art::FileStatsCollector::lastOpenedInputFile(), art::errors::LogicError, and stats_.
Referenced by applySubstitutionsNoIndex_().
|
private |
Definition at line 181 of file PostCloseFileRenamer.cc.
References art::FileStatsCollector::highestRunStartTime(), art::FileStatsCollector::highestSubRunStartTime(), art::errors::LogicError, art::FileStatsCollector::lowestRunStartTime(), art::FileStatsCollector::lowestSubRunStartTime(), art::FileStatsCollector::outputFileCloseTime(), art::FileStatsCollector::outputFileOpenTime(), stats_, and art::to_string().
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_().