ReCodEx - Task Broker
ReCodEx is complex programmer testing solution, primary targeted to technical universities. It's highly customizable and based on modern technologies.
multiple_string_matcher Class Reference
+ Inheritance diagram for multiple_string_matcher:

Public Member Functions

 multiple_string_matcher (std::string my_value)
 
virtual ~multiple_string_matcher ()
 
virtual bool match (const std::string &value)
 
- Public Member Functions inherited from header_matcher
 header_matcher (std::string my_value)
 
virtual ~header_matcher ()
 

Static Public Attributes

static const char delimiter = '|'
 

Additional Inherited Members

- Protected Attributes inherited from header_matcher
std::string my_value_
 

Detailed Description

Takes string containing multiple values (separated by "|" character) and checks, if any of them is equal to preset value.

Definition at line 8 of file worker.cpp.

Constructor & Destructor Documentation

§ multiple_string_matcher()

multiple_string_matcher::multiple_string_matcher ( std::string  my_value)
inline

Constructor setting base value to be compared to.

Parameters
my_valueBase value.

Definition at line 18 of file worker.cpp.

§ ~multiple_string_matcher()

virtual multiple_string_matcher::~multiple_string_matcher ( )
inlinevirtual

Destructor.

Definition at line 23 of file worker.cpp.

Member Function Documentation

§ match()

virtual bool multiple_string_matcher::match ( const std::string &  value)
inlinevirtual

Check if any of given values match with inner preset value.

Parameters
valueValue to be checked. It's one string containing multiple values delimited by delimiter.
Returns
true if any of the values matches, false otherwise.

Reimplemented from header_matcher.

Definition at line 32 of file worker.cpp.

Member Data Documentation

§ delimiter

const char multiple_string_matcher::delimiter = '|'
static

String value delimiter.

Definition at line 12 of file worker.cpp.


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