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

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from header_matcher
std::string my_value_
 

Detailed Description

Checks if a given value is less than or equal to a preset number.

Definition at line 57 of file worker.cpp.

Constructor & Destructor Documentation

§ count_matcher()

count_matcher::count_matcher ( std::string  my_value)
inline

Constructor.

Parameters
my_valueBase value for comparison. Will be converted to size_t type using std::stoul.

Definition at line 68 of file worker.cpp.

§ ~count_matcher()

virtual count_matcher::~count_matcher ( )
inlinevirtual

Destructor.

Definition at line 73 of file worker.cpp.

Member Function Documentation

§ match()

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

Check if given value is >= to inner preset value.

Parameters
valueValue to be checked. Before comparison, the value is converted to size_t type using std::stoul.
Returns
true if value matches, false otherwise.

Reimplemented from header_matcher.

Definition at line 82 of file worker.cpp.


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