Public Member Functions | Protected Attributes | List of all members
flat::FileListBranchPolicy Class Reference

Branch policy based on a list loaded from a text file. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/FlatMaker/BranchPolicy.h"

Inheritance diagram for flat::FileListBranchPolicy:
flat::IBranchPolicy

Public Member Functions

 FileListBranchPolicy (const std::string &fname)
 
bool Include (const std::string &s) const override
 

Protected Attributes

std::unordered_set< std::stringfIncluded
 

Detailed Description

Branch policy based on a list loaded from a text file.

Definition at line 15 of file BranchPolicy.h.

Constructor & Destructor Documentation

flat::FileListBranchPolicy::FileListBranchPolicy ( const std::string fname)

Definition at line 8 of file BranchPolicy.cxx.

References b, fin, fIncluded, and string.

9  {
10  std::ifstream fin(fname);
11 
12  while(!fin.eof()){
13  std::string b;
14  fin >> b;
15  fIncluded.insert(b);
16  }
17  }
TString fin
Definition: Style.C:24
std::unordered_set< std::string > fIncluded
Definition: BranchPolicy.h:25
const hit & b
Definition: hits.cxx:21
enum BeamMode string

Member Function Documentation

bool flat::FileListBranchPolicy::Include ( const std::string s) const
inlineoverridevirtual

Implements flat::IBranchPolicy.

Definition at line 20 of file BranchPolicy.h.

21  {
22  return fIncluded.count(s);
23  }
std::unordered_set< std::string > fIncluded
Definition: BranchPolicy.h:25
const XML_Char * s
Definition: expat.h:262

Member Data Documentation

std::unordered_set<std::string> flat::FileListBranchPolicy::fIncluded
protected

Definition at line 25 of file BranchPolicy.h.

Referenced by FileListBranchPolicy().


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