CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
relaxed_path_filter.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_PATH_FILTERS_RELAXED_PATH_FILTER_H_
6 #define CVMFS_PATH_FILTERS_RELAXED_PATH_FILTER_H_
7 
8 #include <string>
9 
10 #include "path_filters/dirtab.h"
11 
12 namespace catalog {
13 
36 class RelaxedPathFilter : public Dirtab {
37  public:
38  static RelaxedPathFilter* Create(const std::string &dirtab_path);
39  virtual bool Parse(const std::string &dirtab);
40  virtual bool Parse(FILE *dirtab_file);
41  virtual bool IsMatching(const std::string &path) const;
42  virtual bool IsOpposing(const std::string &path) const;
43 
44  protected:
45  virtual bool ParsePathspec(const std::string &pathspec_str, bool negation);
46 
47  private:
53 };
54 
55 } // namespace catalog
56 
57 #endif // CVMFS_PATH_FILTERS_RELAXED_PATH_FILTER_H_
static RelaxedPathFilter * Create(const std::string &dirtab_path)
virtual bool Parse(const std::string &dirtab)
virtual bool IsMatching(const std::string &path) const
virtual bool ParsePathspec(const std::string &pathspec_str, bool negation)
virtual bool IsOpposing(const std::string &path) const