30 #if !defined(_StringMatcher_h_) 31 #define _StringMatcher_h_ 47 virtual bool match(
const std::string &testValue) = 0;
57 virtual bool match(
const std::string &testValue) {
return true; }
76 virtual bool match(
const std::string &testValue) {
return testValue == m_value; }
83 #endif // _StringMatcher_h_ Simple string matcher that compares against a fixed value.
Definition: src/blfwk/StringMatcher.h:63
Definition: BlfwkErrors.h:16
const std::string & m_value
The section name to look for.
Definition: src/blfwk/StringMatcher.h:78
virtual bool match(const std::string &testValue)
Always returns true, indicating a positive match.
Definition: src/blfwk/StringMatcher.h:57
String matcher subclass that matches all test strings.
Definition: src/blfwk/StringMatcher.h:53
virtual bool match(const std::string &testValue)
Returns whether testValue is the same as the value passed to the constructor.
Definition: src/blfwk/StringMatcher.h:76
Abstract interface class used to select strings by name.
Definition: src/blfwk/StringMatcher.h:40
virtual bool match(const std::string &testValue)=0
Performs a single string match test against testValue.
FixedMatcher(const std::string &fixedValue)
Constructor. Sets the string to compare against to be fixedValue.
Definition: src/blfwk/StringMatcher.h:67