string_filter Class Reference

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

#include <string_filter.h>

Inheritance diagram for string_filter:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 string_filter ()
 string_filter (std::string const &include_patterns, std::string const &exclude_patterns)
 Initialise the filter with the include and exclude list, comma-separated.
 string_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 ~string_filter ()
virtual bool match (std::string const &str) const
 Returns true if the given string matches.

Protected Attributes

std::vector< std::string > include
 include patterns
std::vector< std::string > exclude
 exclude patterns

Detailed Description

string_filter - filtering of a string based on include/exclude list

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

This base class gives a default exact-match semantics.


Constructor & Destructor Documentation

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

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

string_filter::string_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 string_filter::~string_filter (  )  [inline, virtual]

Member Function Documentation

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

Returns true if the given string matches.

Reimplemented in glob_filter, and path_filter.

Referenced by arc_recorder::process().


Member Data Documentation

std::vector<std::string> string_filter::exclude [protected]

exclude patterns

std::vector<std::string> string_filter::include [protected]

include patterns


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

Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1