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

#include <worker.h>

Public Member Functions

 job_request_data (const std::string &job_id, const std::vector< std::string > &additional)
 
 job_request_data (const std::string &job_id)
 
bool is_complete () const
 
const std::string & get_job_id () const
 
std::vector< std::string > get () const
 

Detailed Description

Wrapper for request data which holds actual request frames which will be sent to worker and some more usefull information.

Definition at line 14 of file worker.h.

Constructor & Destructor Documentation

§ job_request_data() [1/2]

job_request_data::job_request_data ( const std::string &  job_id,
const std::vector< std::string > &  additional 
)
inline

Default constructor

Parameters
job_ididentification of job
additionaladditional information which will be added to standard message

Definition at line 30 of file worker.h.

§ job_request_data() [2/2]

job_request_data::job_request_data ( const std::string &  job_id)
inline

A constructor for incomplete jobs (only id without request frames)

Parameters
job_ididentification of job

Definition at line 43 of file worker.h.

Member Function Documentation

§ get()

std::vector<std::string> job_request_data::get ( ) const
inline

Gets actual list of frames which will be sent to worker.

Returns
multipart message

Definition at line 69 of file worker.h.

§ get_job_id()

const std::string& job_request_data::get_job_id ( ) const
inline

Gets job identification of this request.

Returns
constant reference to string

Definition at line 60 of file worker.h.

§ is_complete()

bool job_request_data::is_complete ( ) const
inline

Is the request data complete?

Returns
true if and only if the request data is complete

Definition at line 51 of file worker.h.


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