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

#include <worker.h>

+ Inheritance diagram for header_matcher:

Public Member Functions

 header_matcher (std::string my_value)
 
virtual ~header_matcher ()
 
virtual bool match (const std::string &value)
 

Protected Attributes

std::string my_value_
 

Detailed Description

Basic matcher used to compare requested headers to those supported by the worker. The class is meant to be extended for different matching methods (e.g. numeric comparison).

Definition at line 113 of file worker.h.

Constructor & Destructor Documentation

§ header_matcher()

header_matcher::header_matcher ( std::string  my_value)
inline

Constructor setting base value to be compared to.

Parameters
my_valueBase value.

Definition at line 124 of file worker.h.

§ ~header_matcher()

virtual header_matcher::~header_matcher ( )
inlinevirtual

Destructor.

Definition at line 129 of file worker.h.

Member Function Documentation

§ match()

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

Check if given value match with inner preset value.

Parameters
valueValue to be checked.
Returns
true if value matches, false otherwise.

Reimplemented in count_matcher, and multiple_string_matcher.

Definition at line 138 of file worker.h.

Member Data Documentation

§ my_value_

std::string header_matcher::my_value_
protected

Value for comparing with headers.

Definition at line 117 of file worker.h.


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