#include <FileLocator.h>
Classes | |
struct | Rule |
Public Member Functions | |
FileLocator (std::string const &catUrl, unsigned iCatalog=0) | |
std::string | lfn (std::string const &ipfn) const |
std::string | pfn (std::string const &ilfn) const |
~FileLocator () | |
Private Types | |
typedef std::map< std::string, Rules > | ProtocolRules |
typedef std::vector< Rule > | Rules |
Private Member Functions | |
std::string | applyRules (ProtocolRules const &protocolRules, std::string const &protocol, std::string const &destination, bool direct, std::string name) const |
std::string | convert (std::string const &input, ProtocolRules const &rules, bool direct) const |
void | init (std::string const &catUrl, unsigned iCatalog) |
void | parseRule (tinyxml2::XMLElement *ruleNode, ProtocolRules &rules) |
Private Attributes | |
std::string | m_destination |
ProtocolRules | m_directRules |
std::string | m_filename |
std::string | m_fileType |
ProtocolRules | m_inverseRules |
std::vector< std::string > | m_protocols |
Static Private Attributes | |
static int | s_numberOfInstances |
Definition at line 13 of file FileLocator.h.
|
private |
Definition at line 35 of file FileLocator.h.
|
private |
Definition at line 34 of file FileLocator.h.
|
explicit |
Definition at line 45 of file FileLocator.cc.
References init().
edm::FileLocator::~FileLocator | ( | ) |
Definition at line 52 of file FileLocator.cc.
|
private |
Definition at line 190 of file FileLocator.cc.
References HLTMuonOfflineAnalyzer_cff::destination, mps_fire::i, Skims_PA_cff::name, cmsCodeRulesChecker::rules, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by convert().
|
private |
Definition at line 58 of file FileLocator.cc.
References applyRules(), input, m_destination, m_protocols, MillePedeFileConverter_cfg::out, pi, cmsCodeRulesChecker::rules, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by lfn(), and pfn().
|
private |
Definition at line 92 of file FileLocator.cc.
References findQualityFiles::comma, beamspotdip_dqm_sourceclient-live_cfg::configFile, boostedTaus_cff::doc, Exception, edm::Service< T >::isAvailable(), m_destination, m_directRules, m_filename, m_inverseRules, m_protocols, fileinputsource_cfi::option, parseRule(), submitPVValidationJobs::split(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by FileLocator().
std::string edm::FileLocator::lfn | ( | std::string const & | ipfn | ) | const |
Definition at line 56 of file FileLocator.cc.
References convert(), and m_inverseRules.
|
private |
Definition at line 69 of file FileLocator.cc.
References Exception, eostools::move(), or, edm::FileLocator::Rule::pathMatch, mps_fire::result, cmsCodeRulesChecker::rules, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by init().
std::string edm::FileLocator::pfn | ( | std::string const & | ilfn | ) | const |
Definition at line 54 of file FileLocator.cc.
References convert(), and m_directRules.
|
private |
Definition at line 57 of file FileLocator.h.
|
private |
Direct rules are used to do the mapping from LFN to PFN.
Definition at line 50 of file FileLocator.h.
|
private |
Definition at line 55 of file FileLocator.h.
Referenced by init().
|
private |
Definition at line 54 of file FileLocator.h.
|
private |
Inverse rules are used to do the mapping from PFN to LFN
Definition at line 52 of file FileLocator.h.
|
private |
Definition at line 56 of file FileLocator.h.
|
staticprivate |
For the time being the only allowed configuration item is a prefix to be added to the GUID/LFN.
Definition at line 25 of file FileLocator.h.