7 #if !defined(_GlobMatcher_h_) 8 #define _GlobMatcher_h_ 10 #include "StringMatcher.h" 48 virtual bool match(
const std::string &testValue);
54 bool globMatch(
const char *str,
const char *p);
59 #endif // _GlobMatcher_h_ std::string m_pattern
The glob pattern to match against.
Definition: apps/elftosb/common/GlobMatcher.h:51
This class uses glob pattern matching to match strings.
Definition: apps/elftosb/common/GlobMatcher.h:37
GlobMatcher(const std::string &pattern)
Constructor.
Definition: apps/elftosb/common/GlobMatcher.h:41
Definition: BootImage.h:13
bool globMatch(const char *str, const char *p)
Glob implementation.
Definition: apps/elftosb/common/GlobMatcher.cpp:29
Abstract interface class used to select strings by name.
Definition: apps/elftosb/common/StringMatcher.h:17
virtual bool match(const std::string &testValue)
Returns whether testValue matches the glob pattern.
Definition: apps/elftosb/common/GlobMatcher.cpp:22