glob_filter Class Reference

glob_filter - filtering of a string based on globbed include/exclude list More...

#include <glob_filter.h>

Inheritance diagram for glob_filter:
Inheritance graph
[legend]
Collaboration diagram for glob_filter:
Collaboration graph
[legend]

List of all members.

Classes

struct  fnmatcher
 function object for fnmatching More...

Public Member Functions

 glob_filter (std::string const &include_patterns, std::string const &exclude_patterns)
 Initialise the filter with the include and exclude list, comma-separated.
 glob_filter (std::vector< std::string > const &include_patterns, std::vector< std::string > const &exclude_patterns)
 Initialise the filter with the include and exclude list.
virtual bool match (std::string const &str) const
 Returns true if the given string matches.

Detailed Description

glob_filter - filtering of a string based on globbed include/exclude list

This class is an oracle on whether a particular string matches the given list of included and excluded strings.

This class gives glob-based matches on each pattern, as with fnmatch(3)


Constructor & Destructor Documentation

glob_filter::glob_filter ( std::string const &  include_patterns,
std::string const &  exclude_patterns 
) [inline]

Initialise the filter with the include and exclude list, comma-separated.

glob_filter::glob_filter ( std::vector< std::string > const &  include_patterns,
std::vector< std::string > const &  exclude_patterns 
) [inline]

Initialise the filter with the include and exclude list.


Member Function Documentation

virtual bool glob_filter::match ( std::string const &  str  )  const [virtual]

Returns true if the given string matches.

Reimplemented from string_filter.

Reimplemented in path_filter.

Referenced by profile_spec::match().


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

Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1