Public Member Functions | Private Attributes | List of all members
cet::search_path Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/cetlib/v3_06_01/source/cetlib/search_path.h"

Public Member Functions

 search_path (std::string const &env_name_or_path)
 
 search_path (std::string const &env_name, std::nothrow_t)
 
 search_path (std::string const &path, cet::path_tag_t)
 
std::string const & showenv () const
 
bool empty () const
 
std::size_t size () const
 
std::string const & operator[] (std::size_t k) const
 
std::string find_file (std::string const &filename) const
 
bool find_file (std::string const &filename, std::string &result) const
 
std::size_t find_files (std::string const &filename_pattern, std::vector< std::string > &result) const
 
template<class OutIter >
std::size_t find_files (std::string const &filename_pattern, OutIter dest) const
 
std::string to_string () const
 

Private Attributes

std::string env_
 
std::vector< std::string > dirs_ {}
 

Detailed Description

Definition at line 37 of file search_path.h.

Constructor & Destructor Documentation

cet::search_path::search_path ( std::string const &  env_name_or_path)
explicit
cet::search_path::search_path ( std::string const &  env_name,
std::nothrow_t   
)
cet::search_path::search_path ( std::string const &  path,
cet::path_tag_t   
)

Member Function Documentation

bool cet::search_path::empty ( ) const
std::string cet::search_path::find_file ( std::string const &  filename) const

Referenced by calib::ADCShapeFitAna::analyze(), xsrec::MakeXSecCCPi0Inc::beginJob(), me::MEFinder::beginJob(), rsim::ReadoutSim::beginRun(), calib::BetheBlochTables::BetheBlochTables(), calib::Calibrator::Calibrator(), fnex::EventListManipulator::Cosmics2017(), trigmon::LongReadoutAnalyzer::createDBTables(), nova::dbi::Table::CreateFromXML(), fnex::CAFToEventList::DefineNumuQuantiles(), cmf::CAFToEventList::DefineNumuQuantiles(), fnex::EventListManipulator::FarDetCosmicBackgroundHistAndScale(), novarwgt::FindAndOpenFile(), novaddt::MoonShadow::FindEphemerisFile(), locator::CelestialLocator::FindEphemerisFile(), geo::GeometryBase::FindGDMLFile(), novaddt::MoonShadow::FindSmartPrescaleLookup(), moonshadowana::MoonShadowAna::FindSmartPrescaleLookup(), moonshadowana::MoonShadowAnaHough::FindSmartPrescaleLookup(), g4n::G4Alg::G4Alg(), geo::GeometryBase::GeometryBase(), fnex::ShifterAndWeighter::HornCurrentWeight(), rsim::IFPGAAlgorithm::IFPGAAlgorithm(), fnex::CalibSyst::Load2018CalibSystHists(), cmf::ShifterAndWeighter::LoadBeamSystHists2017(), fnex::ShifterAndWeighter::LoadBeamSystHists2017(), fnex::CalibSyst::LoadCalibSystHists(), cmf::CalibSyst::LoadCalibSystRatios(), cmf::ShifterAndWeighter::LoadFluxBeamSystHists(), fnex::ShifterAndWeighter::LoadFluxBeamSystHists(), cmf::GeniePCASyst::LoadGeniePCASystHists(), fnex::GeniePCASyst::LoadGeniePCASystHists(), fnex::ShifterAndWeighter::LoadNueSystHists(), fnex::ShifterAndWeighter::LoadSABeamSystHists(), cmf::ShifterAndWeighter::NueAcceptSignalKin2018Weight(), fnex::ShifterAndWeighter::NueAcceptSignalKin2018Weight(), fnex::ShifterAndWeighter::NueExtrapSig2017Weight(), numue::NumuEAlg::NumuEAlg(), photrans::FiberBrightness::preBeginRun(), locator::CelestialLocator::reconfigure(), novaddt::WaveformProcessor::reconfigure(), and supernova::SnovaGen::SnovaGen().

bool cet::search_path::find_file ( std::string const &  filename,
std::string &  result 
) const
std::size_t cet::search_path::find_files ( std::string const &  filename_pattern,
std::vector< std::string > &  result 
) const
template<class OutIter >
std::size_t cet::search_path::find_files ( std::string const &  filename_pattern,
OutIter  dest 
) const

Definition at line 103 of file search_path.h.

References cet::copy_all(), PlotUtilityNew::find_files(), and makeDatasetsPage::results.

104 {
105  std::vector<std::string> results;
106  size_t const nfound{find_files(pattern, results)};
107  cet::copy_all(results, dest);
108  return nfound;
109 }
std::size_t find_files(std::string const &filename_pattern, std::vector< std::string > &result) const
auto copy_all(FwdCont &, FwdIter)
std::string const& cet::search_path::operator[] ( std::size_t  k) const
std::string const& cet::search_path::showenv ( ) const
inline
std::size_t cet::search_path::size ( ) const
std::string cet::search_path::to_string ( ) const

Member Data Documentation

std::vector<std::string> cet::search_path::dirs_ {}
private

Definition at line 98 of file search_path.h.

std::string cet::search_path::env_
private

Definition at line 97 of file search_path.h.


The documentation for this class was generated from the following file: