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

#include "/cvmfs/"

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::stringdirs_ {}

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)
cet::search_path::search_path ( std::string const &  env_name,
cet::search_path::search_path ( std::string const &  path,

Member Function Documentation

bool cet::search_path::empty ( ) const
std::string cet::search_path::find_file ( std::string const &  filename) const
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
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_ {}

Definition at line 98 of file search_path.h.

std::string cet::search_path::env_

Definition at line 97 of file search_path.h.

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