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

#include <filepath_maker.h>

Inheritance diagram for cet::filepath_lookup_after1:
cet::filepath_maker

Public Member Functions

 filepath_lookup_after1 (std::string paths)
 
std::string operator() (std::string const &filename) override
 
void reset ()
 
- Public Member Functions inherited from cet::filepath_maker
virtual ~filepath_maker () noexcept=default
 

Private Attributes

bool after1 {false}
 
cet::search_path paths
 

Detailed Description

Definition at line 78 of file filepath_maker.h.

Constructor & Destructor Documentation

filepath_lookup_after1::filepath_lookup_after1 ( std::string  paths)

Definition at line 56 of file filepath_maker.cc.

57  : paths{move(paths)}
58 {}
def move(depos, offset)
Definition: depos.py:107

Member Function Documentation

std::string filepath_lookup_after1::operator() ( std::string const &  filename)
overridevirtual

Reimplemented from cet::filepath_maker.

Definition at line 61 of file filepath_maker.cc.

62 {
63  return after1 ? paths.find_file(filename) : (after1 = true, filename);
64 }
string filename
Definition: train.py:213
std::string find_file(std::string const &filename) const
Definition: search_path.cc:96
void filepath_lookup_after1::reset ( )

Definition at line 67 of file filepath_maker.cc.

68 {
69  after1 = false;
70 }

Member Data Documentation

bool cet::filepath_lookup_after1::after1 {false}
private

Definition at line 87 of file filepath_maker.h.

cet::search_path cet::filepath_lookup_after1::paths
private

Definition at line 88 of file filepath_maker.h.


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