All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 <BranchPolicy.h>

Inheritance diagram for flat::FileListBranchPolicy:

Public Member Functions

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

Protected Attributes

std::unordered_set< std::string > fIncluded
 

Detailed Description

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

Definition at line 10 of file BranchPolicy.h.

Constructor & Destructor Documentation

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

Member Function Documentation

bool flat::FileListBranchPolicy::Include ( const std::string &  s) const
inlineoverride

Definition at line 15 of file BranchPolicy.h.

16  {
17  return fIncluded.count(s);
18  }
std::unordered_set< std::string > fIncluded
Definition: BranchPolicy.h:20
then echo File list $list not found else cat $list while read file do echo $file sed s
Definition: file_to_url.sh:60

Member Data Documentation

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

Definition at line 20 of file BranchPolicy.h.


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